mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-27 00:11:01 +02:00
google drive ignores shortcut filetypes now
This commit is contained in:
parent
ba58208a85
commit
3dfe17a54d
@ -473,6 +473,11 @@ class GoogleDriveConnector(LoadConnector, PollConnector):
|
|||||||
doc_batch = []
|
doc_batch = []
|
||||||
for file in files_batch:
|
for file in files_batch:
|
||||||
try:
|
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 self.only_org_public:
|
||||||
if "permissions" not in file:
|
if "permissions" not in file:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user