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:
return nil
case 409:
case 404, 409:
err = c.createParentCollection(path)
if err != nil {
return