获取时直接传入相对时间,还是0点可能会出问题,使用path.join而不是直接拼接地址

This commit is contained in:
2025-02-16 14:43:52 +08:00
parent 1115bed7e2
commit 5b4d94e905
7 changed files with 46 additions and 24 deletions

View File

@ -3,10 +3,11 @@ package fs
import (
"ZhenTuLocalPassiveAdapter/config"
"ZhenTuLocalPassiveAdapter/dto"
"time"
)
type Adapter interface {
GetFileList(path string) ([]dto.File, error)
GetFileList(path string, relDt time.Time) ([]dto.File, error)
}
func GetAdapter() Adapter {