1
mirror of https://github.com/rclone/rclone synced 2024-12-22 13:03:02 +01:00
rclone/backend/putio
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
..
error.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
fs.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
object.go backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
putio_test.go putio: add new backend 2019-08-23 12:11:36 +01:00
putio.go fs: change Config callback into state based callback #3455 2021-05-14 14:07:44 +01:00