fix(alidrive): judge status of delete folder (close #886)

pull/892/head
Xhofe 2022-04-02 14:34:34 +08:00
parent 0537449335
commit d69d24a5b2
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ func (driver AliDrive) Delete(path string, account *model.Account) error {
}
return fmt.Errorf("%s", e.Message)
}
if res.StatusCode() == 204 {
if res.StatusCode() < 400 {
return nil
}
return errors.New(res.String())