mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
drive: Fix change list polling with team drives - fixes #2330
In the drive v3 conversion we forgot the IncludeTeamDriveItems parameter when calling the changes API. Adding it fixes the changes polling with team drives.
This commit is contained in:
parent
04d18d2a07
commit
05edb5f501
@ -1315,9 +1315,14 @@ func (f *Fs) changeNotifyRunner(notifyFunc func(string, fs.EntryType), pollInter
|
|||||||
err = f.pacer.Call(func() (bool, error) {
|
err = f.pacer.Call(func() (bool, error) {
|
||||||
changesCall := f.svc.Changes.List(pageToken).Fields("nextPageToken,newStartPageToken,changes(fileId,file(name,parents,mimeType))")
|
changesCall := f.svc.Changes.List(pageToken).Fields("nextPageToken,newStartPageToken,changes(fileId,file(name,parents,mimeType))")
|
||||||
if *driveListChunk > 0 {
|
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)
|
return shouldRetry(err)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user