Skip to content

Commit a02e8a8

Browse files
committed
fix: update storage path handling in Save method
1 parent 4d2c345 commit a02e8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/alist/alist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (a *Alist) Name() string {
104104

105105
func (a *Alist) Save(ctx context.Context, reader io.Reader, storagePath string) error {
106106
a.logger.Infof("Saving file to %s", storagePath)
107-
107+
storagePath = a.JoinStoragePath(storagePath)
108108
ext := path.Ext(storagePath)
109109
base := strings.TrimSuffix(storagePath, ext)
110110
candidate := storagePath

0 commit comments

Comments
 (0)