mirror of https://github.com/rclone/rclone
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
|
var changeList *drive.ChangeList
|
||||||
|
|
||||||
err = f.pacer.Call(func() (bool, error) {
|
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))")
|
Fields("nextPageToken,newStartPageToken,changes(fileId,file(name,parents,mimeType))")
|
||||||
if f.opt.ListChunk > 0 {
|
if f.opt.ListChunk > 0 {
|
||||||
changesCall.PageSize(f.opt.ListChunk)
|
changesCall.PageSize(f.opt.ListChunk)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue