mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-22 08:47:09 +08:00
fix: update storage path handling in Save method
This commit is contained in:
@@ -104,7 +104,7 @@ func (a *Alist) Name() string {
|
|||||||
|
|
||||||
func (a *Alist) Save(ctx context.Context, reader io.Reader, storagePath string) error {
|
func (a *Alist) Save(ctx context.Context, reader io.Reader, storagePath string) error {
|
||||||
a.logger.Infof("Saving file to %s", storagePath)
|
a.logger.Infof("Saving file to %s", storagePath)
|
||||||
|
storagePath = a.JoinStoragePath(storagePath)
|
||||||
ext := path.Ext(storagePath)
|
ext := path.Ext(storagePath)
|
||||||
base := strings.TrimSuffix(storagePath, ext)
|
base := strings.TrimSuffix(storagePath, ext)
|
||||||
candidate := storagePath
|
candidate := storagePath
|
||||||
|
|||||||
Reference in New Issue
Block a user