drive: fix change notify picking up files outside the root
Before this change, change notify would pick up files which were shared with us as well as file within the drive. When using an encrypted mount this caused errors like: ChangeNotify was unable to decrypt "Plain file name": illegal base32 data at input byte 5 The fix tells drive to restrict changes to the drive in use. Fixes #6771
This commit is contained in:
parent
d0810b602a
commit
d8f4cd4d5f
1 changed files with 1 additions and 0 deletions
|
@ -2880,6 +2880,7 @@ func (f *Fs) changeNotifyRunner(ctx context.Context, notifyFunc func(string, fs.
|
||||||
if f.rootFolderID == "appDataFolder" {
|
if f.rootFolderID == "appDataFolder" {
|
||||||
changesCall.Spaces("appDataFolder")
|
changesCall.Spaces("appDataFolder")
|
||||||
}
|
}
|
||||||
|
changesCall.RestrictToMyDrive(!f.opt.SharedWithMe)
|
||||||
changeList, err = changesCall.Context(ctx).Do()
|
changeList, err = changesCall.Context(ctx).Do()
|
||||||
return f.shouldRetry(ctx, err)
|
return f.shouldRetry(ctx, err)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue