Merge pull request #6 from ProgramYazar/master

fix delete for yandex
This commit is contained in:
Christoph Polcin 2017-09-19 07:22:16 +02:00 committed by GitHub
commit e3cd1f98e7

View File

@ -196,7 +196,7 @@ func (c *Client) RemoveAll(path string) error {
} }
rs.Body.Close() rs.Body.Close()
if rs.StatusCode == 200 || rs.StatusCode == 404 { if rs.StatusCode == 200 || rs.StatusCode == 204 || rs.StatusCode == 404 {
return nil return nil
} else { } else {
return newPathError("Remove", path, rs.StatusCode) return newPathError("Remove", path, rs.StatusCode)