Added check for root path

This commit is contained in:
Justus Flerlage 2019-11-08 23:27:45 +01:00 committed by Vitalii
parent e53b818e1b
commit 9f625b1b8e

View File

@ -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
}