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: fix change notify polling when using appDataFolder

Nick Craig-Wooda3a5857874e8
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index caea6ea76..ffdb874c3 100644
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -2343,6 +2343,10 @@ func (f *Fs) changeNotifyRunner(ctx context.Context, notifyFunc func(string, fs.
if f.isTeamDrive {
changesCall.DriveId(f.opt.TeamDriveID)
}
+ // If using appDataFolder then need to add Spaces
+ if f.rootFolderID == "appDataFolder" {
+ changesCall.Spaces("appDataFolder")
+ }
changeList, err = changesCall.Context(ctx).Do()
return shouldRetry(err)
})