fix: Write creates parent collections on 404

This commit is contained in:
Christoph Polcin 2022-10-16 00:42:21 +02:00
parent 2c20e7e763
commit bf6102194f

View File

@ -410,7 +410,7 @@ func (c *Client) Write(path string, data []byte, _ os.FileMode) (err error) {
case 200, 201, 204: case 200, 201, 204:
return nil return nil
case 409: case 404, 409:
err = c.createParentCollection(path) err = c.createParentCollection(path)
if err != nil { if err != nil {
return return