Skip to content

Commit

Permalink
Added check for root path
Browse files Browse the repository at this point in the history
  • Loading branch information
Stazer authored and MrVine committed Nov 14, 2019
1 parent e53b818 commit 9f625b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9f625b1

Please sign in to comment.