1
mirror of https://github.com/rclone/rclone synced 2024-11-27 05:23:40 +01:00
rclone/backend/drive
Nick Craig-Wood 3fbaa4c0b0 backends: make NewObject return fs.ErrorIsDir if possible
This changes the interface to NewObject so that if NewObject is called
on a directory then it should return fs.ErrorIsDir if possible without
doing any extra work, otherwise fs.ErrorObjectNotFound.

Tested on integration test server with:

go run integration-test.go -tests backend -run TestIntegration/FsMkdir/FsPutFiles/FsNewObjectDir -branch fix-stat -maxtries 1
2021-10-14 17:15:50 +01:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive_internal_test.go drive: constrain list by filter #5023 2021-10-07 22:11:22 +03:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive.go backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
upload.go backends: Add context checking to remaining backends #4504 2021-03-16 16:17:22 +00:00