mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +08:00
fix(alidrive): judge status of delete folder (close #886)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user