Skip to content

Commit 347fdef

Browse files
committed
chore: Update src_dir value in Delete method of Alist storage
The src_dir value in the Delete method of the Alist storage has been updated to use the config.Cfg.Storage.Alist.Path value instead of the hardcoded "/". This change ensures that the correct source directory is used when removing empty directories.
1 parent 23ae7f5 commit 347fdef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
const (
11-
Version string = "0.19.5"
11+
Version string = "0.19.6"
1212
)
1313

1414
var VersionCmd = &cobra.Command{

storage/alist/alist.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (a *Alist) Delete(ctx context.Context, detail *types.StorageDetail) error {
140140
}
141141
go func() {
142142
_, err = reqClient.R().SetBodyJsonMarshal(map[string]string{
143-
"src_dir": "/",
143+
"src_dir": config.Cfg.Storage.Alist.Path,
144144
}).Post("/api/fs/remove_empty_directory")
145145
if err != nil {
146146
Logger.Warnf("failed to remove empty directory: %s", err)

0 commit comments

Comments
 (0)