drive: fix change notify polling when using appDataFolder

See: https://forum.rclone.org/t/remote-changes-arent-picked-up/12520
This commit is contained in:
Nick Craig-Wood 2019-10-24 12:51:01 +01:00
parent 0f0079ff71
commit a3a5857874
1 changed files with 4 additions and 0 deletions

View File

@ -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)
})