Added check of parentPath in createParentCollection
This commit is contained in:
		
							parent
							
								
									ff7f737904
								
							
						
					
					
						commit
						e53b818e1b
					
				@ -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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user