add RemoveAll

This commit is contained in:
Christoph Polcin 2014-10-24 12:01:54 +02:00
parent eb64a8f4bd
commit 4f95c70fb3

View File

@ -121,6 +121,10 @@ func (c *Client) ReadDir(path string) ([]os.FileInfo, 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)
if err != nil {
return newPathError("Remove", path, 400)