rclone/backend/dropbox
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
..
dbhash build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
batcher.go dropbox: fix async batch missing the last few entries 2021-05-14 14:07:44 +01:00
dropbox_internal_test.go dropbox: test file name length before upload to fix upload loop 2020-12-01 17:56:36 +00:00
dropbox_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
dropbox.go backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00