Added check of parentPath in createParentCollection
This commit is contained in:
1 parent
ff7f737904
commit
e53b818e1b
1 file changed
+4
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user