rclone/backend/drive
Nick Craig-Wood cbf3d43561 drive: fix missing items when listing using --fast-list / ListR
This is caused by a bug in Google drive where, in some circumstances
querying for "(A in parents) or (B in parents)" returns nothing
whereas querying for "A in parents" and "B in parents" separately
works fine.

This has been reported here:

https://issuetracker.google.com/issues/149522397

This workaround detects this condition by seeing if a listing for more
than one directory at once returns nothing.

If it does then it retries each one individually.

This can potentially have a false positive if the user has multiple
empty directories which are queried at once. The consequence of this
will be that ListR is disabled for a while until the directories are
found to be actually empty in which case it will be re-enabled.

Fixes #3114 and Fixes #4289
2020-05-31 11:44:15 +01:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive.go drive: fix missing items when listing using --fast-list / ListR 2020-05-31 11:44:15 +01:00
drive_internal_test.go drive: strip trailing slashes in shortcut command #4098 2020-05-12 17:08:05 +01:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
upload.go drive: use multipart resumable uploads for streaming and uploads in mount 2020-01-17 22:03:10 +00:00