Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: make --drive-shared-with-me work with shared drives

Nick Craig-Woode87e331f4c56
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index c5f5827f7..176b94e6e 100644
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -886,7 +886,7 @@ func (f *Fs) list(ctx context.Context, dirIDs []string, title string, directorie
}
list.SupportsAllDrives(true)
list.IncludeItemsFromAllDrives(true)
- if f.isTeamDrive {
+ if f.isTeamDrive && !f.opt.SharedWithMe {
list.DriveId(f.opt.TeamDriveID)
list.Corpora("drive")
}