"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
drive: Fix change list polling with team drives - fixes #2330
Nick Craig-Wood05edb5f501a1
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex feb414992..ca773b7bb 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -1315,9 +1315,14 @@ func (f *Fs) changeNotifyRunner(notifyFunc func(string, fs.EntryType), pollIntererr = f.pacer.Call(func() (bool, error) {changesCall := f.svc.Changes.List(pageToken).Fields("nextPageToken,newStartPageToken,changes(fileId,file(name,parents,mimeType))")if *driveListChunk > 0 {- changesCall = changesCall.PageSize(*driveListChunk)+ changesCall.PageSize(*driveListChunk)}- changeList, err = changesCall.SupportsTeamDrives(f.isTeamDrive).Do()+ if f.isTeamDrive {+ changesCall.TeamDriveId(f.teamDriveID)+ changesCall.SupportsTeamDrives(true)+ changesCall.IncludeTeamDriveItems(true)+ }+ changeList, err = changesCall.Do()return shouldRetry(err)})if err != nil {