rclone/backend
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
..
alias config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
all new backend: uptobox 2021-04-13 17:46:07 +02:00
amazonclouddrive build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
azureblob build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
b2 Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
box backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
cache config: convert --cache-dir value to an absolute path 2021-10-11 15:08:35 +02:00
chunker chunker: md5all must create metadata if base hash is slow 2021-10-13 16:18:08 +03:00
compress docs/compress: minor improvements 2021-10-09 18:22:38 +02:00
crypt crypt: fix uploads with --crypt-no-data-encryption 2021-10-12 17:12:41 +01:00
drive backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
dropbox backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
fichier fichier: check that we actually got a download token and retry if we didn't 2021-07-06 14:58:50 +02:00
filefabric backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
ftp ftp: enable CI for ProFtpd, PureFtpd, VsFtpd 2021-10-01 10:09:57 +03:00
googlecloudstorage 🧹 GCS: Clean up time format constants 2021-05-28 14:44:50 +01:00
googlephotos googlephotos: Use encoder for album names 2021-08-19 16:38:31 +01:00
hdfs build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
http config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
hubic fs: change Config callback into state based callback #3455 2021-05-14 14:07:44 +01:00
jottacloud backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
koofr backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
local backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
mailru backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
mega backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
memory azureblob,memory,pcloud: fix setting of mime types 2020-11-27 14:40:05 +00:00
onedrive backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
opendrive Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
pcloud pcloud: try harder to delete a failed upload 2021-09-17 10:43:45 +01:00
premiumizeme fs: change Config callback into state based callback #3455 2021-05-14 14:07:44 +01:00
putio backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
qingstor build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
s3 s3: add support to use CDN URL to download the file 2021-10-14 11:19:38 +01:00
seafile seafile: fix 2fa state machine 2021-09-18 12:44:59 +01:00
sftp backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
sharefile backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
sugarsync sugarsync: fix initial connection after config re-arrangement - Fixes #5525 2021-08-14 12:53:36 +01:00
swift Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
tardigrade build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
union union: fix rename not working with union of local disk and bucket based remote 2021-09-30 20:09:02 +01:00
uptobox backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
webdav backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
yandex backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00
zoho backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00