Skip to content

Commit

Permalink
google drive ignores shortcut filetypes now
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer authored and Weves committed Jun 21, 2024
1 parent ba58208 commit 3dfe17a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/danswer/connectors/google_drive/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ def _fetch_docs_from_drive(
doc_batch = []
for file in files_batch:
try:
# Skip files that are shortcuts
if file.get("mimeType") == DRIVE_SHORTCUT_TYPE:
logger.info("Ignoring Drive Shortcut Filetype")
continue

if self.only_org_public:
if "permissions" not in file:
continue
Expand Down

0 comments on commit 3dfe17a

Please sign in to comment.