Skip to content

Commit

Permalink
fix(alist_v3): incorrect dir on remove (close #3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jan 27, 2023
1 parent 1430574 commit b52e874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/alist_v3/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (d *AListV3) Remove(ctx context.Context, obj model.Obj) error {
SetResult(&resp).
SetHeader("Authorization", d.AccessToken).
SetBody(RemoveReq{
Dir: obj.GetPath(),
Dir: path.Dir(obj.GetPath()),
Names: []string{obj.GetName()},
}).Post(url)
return checkResp(resp, err)
Expand Down

0 comments on commit b52e874

Please sign in to comment.