mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:36:38 +08:00
drive: set the IncludeCorpusRemovals flag so changes returns deletes
Without this flag changes does not include files which were hard deleted. Fixes #3020
This commit is contained in:
parent
1692c6bd0a
commit
ec40ffbdc1
|
@ -2203,7 +2203,7 @@ func (f *Fs) changeNotifyRunner(notifyFunc func(string, fs.EntryType), startPage
|
|||
var changeList *drive.ChangeList
|
||||
|
||||
err = f.pacer.Call(func() (bool, error) {
|
||||
changesCall := f.svc.Changes.List(pageToken).
|
||||
changesCall := f.svc.Changes.List(pageToken).IncludeCorpusRemovals(true).
|
||||
Fields("nextPageToken,newStartPageToken,changes(fileId,file(name,parents,mimeType))")
|
||||
if f.opt.ListChunk > 0 {
|
||||
changesCall.PageSize(f.opt.ListChunk)
|
||||
|
|
Loading…
Reference in New Issue
Block a user