fix: Write creates parent collections on 404
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user