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
..
2020-10-14 15:21:31 +01:00
2018-08-21 10:58:59 +01:00
2021-04-27 02:25:52 +03:00
2021-06-14 14:42:49 +03:00
2019-06-19 11:59:46 +01:00
2021-06-14 14:42:49 +03:00
2021-06-14 14:42:49 +03:00
2021-06-14 14:42:49 +03:00
2021-08-01 13:43:36 +01:00