diff --git a/client.go b/client.go index 93b0e318..1d720119 100644 --- a/client.go +++ b/client.go @@ -958,13 +958,12 @@ func (c *Client) RemoveAll(path string) error { } // Delete the empty directory - return c.RemoveDirectory(path) - - } else { - // Delete individual files return c.Remove(path) + } + return nil + } // File represents a remote file.