Fix drive connector for service accounts with shared files turned off

This commit is contained in:
Weves 2023-10-08 00:05:16 -07:00 committed by Chris Weaver
parent 9425ccd043
commit c658ffd0b6

View File

@ -75,7 +75,9 @@ def _run_drive_file_query(
results = (
service.files()
.list(
corpora="allDrives", # needed to search through shared drives
corpora="allDrives"
if include_shared
else "user", # needed to search through shared drives
pageSize=batch_size,
supportsAllDrives=include_shared,
includeItemsFromAllDrives=include_shared,