commit
e3cd1f98e7
1 file changed
+1
-1
@@ -196,7 +196,7 @@ func (c *Client) RemoveAll(path string) error {
|
||||
}
|
||||
rs.Body.Close()
|
||||
|
||||
if rs.StatusCode == 200 || rs.StatusCode == 404 {
|
||||
if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 {
|
||||
return nil
|
||||
} else {
|
||||
return newPathError("Remove", path, rs.StatusCode)
|
||||
|
||||
Reference in new issue
Block a user