From 3dfe17a54d34b8bf5d0245f4a07a2951049387cc Mon Sep 17 00:00:00 2001 From: hagen-danswer Date: Thu, 20 Jun 2024 14:29:11 -0700 Subject: [PATCH] google drive ignores shortcut filetypes now --- backend/danswer/connectors/google_drive/connector.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/danswer/connectors/google_drive/connector.py b/backend/danswer/connectors/google_drive/connector.py index b1c4a8960..ac455c040 100644 --- a/backend/danswer/connectors/google_drive/connector.py +++ b/backend/danswer/connectors/google_drive/connector.py @@ -473,6 +473,11 @@ class GoogleDriveConnector(LoadConnector, PollConnector): 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