From a3a5857874e8bd8839d099de7cf7f98b7e77eb23 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 24 Oct 2019 12:51:01 +0100 Subject: [PATCH] drive: fix change notify polling when using appDataFolder See: https://forum.rclone.org/t/remote-changes-arent-picked-up/12520 --- backend/drive/drive.go | 4 ++++ 1 file changed, 4 insertions(+) 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) })