From 9f625b1b8e77a2c7294e07461f60fe22da636c5e Mon Sep 17 00:00:00 2001 From: Justus Flerlage Date: Fri, 8 Nov 2019 23:27:45 +0100 Subject: [PATCH] Added check for root path --- requests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests.go b/requests.go index b3e1f7f..3b9f9c0 100644 --- a/requests.go +++ b/requests.go @@ -165,7 +165,7 @@ func (c *Client) put(path string, stream io.Reader) int { func (c *Client) createParentCollection(itemPath string) (err error) { parentPath := path.Dir(itemPath) - if parentPath == "." { + if parentPath == "." || parentPath == "/" { return nil }