fix: mapping filename in GetName

some missed filename mapping
This commit is contained in:
Noah Hsu
2022-11-30 20:46:54 +08:00
parent d94cf72da2
commit 83644dab85
11 changed files with 33 additions and 25 deletions

View File

@ -5,6 +5,7 @@ import (
"time"
"github.com/alist-org/alist/v3/internal/model"
"github.com/alist-org/alist/v3/pkg/utils"
)
//type BaseResp struct {
@ -39,7 +40,7 @@ func (f File) GetSize() int64 {
}
func (f File) GetName() string {
return f.FileName
return utils.MappingName(f.FileName)
}
func (f File) ModTime() time.Time {