fix(alist_v3): incorrect dir on remove (close #3154)
This commit is contained in:
parent
14305748f0
commit
b52e8747fa
@ -149,7 +149,7 @@ func (d *AListV3) Remove(ctx context.Context, obj model.Obj) error {
|
|||||||
SetResult(&resp).
|
SetResult(&resp).
|
||||||
SetHeader("Authorization", d.AccessToken).
|
SetHeader("Authorization", d.AccessToken).
|
||||||
SetBody(RemoveReq{
|
SetBody(RemoveReq{
|
||||||
Dir: obj.GetPath(),
|
Dir: path.Dir(obj.GetPath()),
|
||||||
Names: []string{obj.GetName()},
|
Names: []string{obj.GetName()},
|
||||||
}).Post(url)
|
}).Post(url)
|
||||||
return checkResp(resp, err)
|
return checkResp(resp, err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user