diff --git a/requests.go b/requests.go index 3753a75..b3e1f7f 100644 --- a/requests.go +++ b/requests.go @@ -165,5 +165,9 @@ func (c *Client) put(path string, stream io.Reader) int { func (c *Client) createParentCollection(itemPath string) (err error) { parentPath := path.Dir(itemPath) + if parentPath == "." { + return nil + } + return c.MkdirAll(parentPath, 0755) }