From 4f95c70fb32842685c3683b624c1a60004f9cbb3 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Fri, 24 Oct 2014 12:01:54 +0200 Subject: [PATCH] add RemoveAll --- client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.go b/client.go index 3562c0a..fd6187b 100644 --- a/client.go +++ b/client.go @@ -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)