add RemoveAll
This commit is contained in:
		
							parent
							
								
									eb64a8f4bd
								
							
						
					
					
						commit
						4f95c70fb3
					
				| @ -121,6 +121,10 @@ func (c *Client) ReadDir(path string) ([]os.FileInfo, error) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func (c *Client) Remove(path string) error { | func (c *Client) Remove(path string) error { | ||||||
|  | 	return c.RemoveAll(path) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | func (c *Client) RemoveAll(path string) error { | ||||||
| 	rs, err := c.reqDo("DELETE", path, nil) | 	rs, err := c.reqDo("DELETE", path, nil) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return newPathError("Remove", path, 400) | 		return newPathError("Remove", path, 400) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user