1
mirror of https://github.com/rclone/rclone synced 2024-12-01 10:31:57 +01:00
rclone/backend/webdav
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
..
api webdav: Fix free/used display for rclone about/df for certain backends - fixes #4348 2020-06-20 15:15:15 +01:00
odrvcookie webdav: fix sharepoint auth over http - fixes #4418 2021-04-10 11:59:56 +01:00
webdav_internal_test.go webdav: add headers option 2021-05-12 09:52:07 +01:00
webdav_test.go webdav: add support for sharepoint with NTLM authentication (#2921) 2021-02-23 23:27:30 +00:00
webdav.go backends: make NewObject return fs.ErrorIsDir if possible 2021-10-14 17:15:50 +01:00