Added check for root path
This commit is contained in:
parent
e53b818e1b
commit
9f625b1b8e
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user