From bf6102194f678e96b84b2138a466db89dcf3b364 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Sun, 16 Oct 2022 00:42:21 +0200 Subject: [PATCH] fix: Write creates parent collections on 404 --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index d918c18..7ea68d2 100644 --- a/client.go +++ b/client.go @@ -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