1
mirror of https://github.com/rclone/rclone synced 2024-12-10 22:33:56 +01:00
rclone/backend/drive
Nick Craig-Wood 1e423d21e1 drive: fix listing of the root directory with drive.files scope
We attempt to find the ID of the root folder by doing a GET on the
folder ID "root". With scope "drive.files" this fails with a 404
message.

After this change if we get the 404 message, we just carry on using
"root" as the root folder ID and we cache that for future lookups.

This means that changenotify messages will not work correctly in the
root folder but otherwise has minor consequences.

See: https://forum.rclone.org/t/fresh-raspberry-pi-build-google-drive-404-error-failed-to-ls-googleapi-error-404-file-not-found/12791
2019-11-11 09:07:34 +00:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive_internal_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive.go drive: fix listing of the root directory with drive.files scope 2019-11-11 09:07:34 +00:00
upload.go Add context to all http.NewRequest #3257 2019-09-09 23:27:07 +01:00