From b52e8747fa09a4b7dc991395b8e0eeb8cf0dfc22 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Fri, 27 Jan 2023 14:51:56 +0800 Subject: [PATCH] fix(alist_v3): incorrect dir on remove (close #3154) --- drivers/alist_v3/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/alist_v3/driver.go b/drivers/alist_v3/driver.go index 5133faf6..41b8510b 100644 --- a/drivers/alist_v3/driver.go +++ b/drivers/alist_v3/driver.go @@ -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)