You've already forked VptPassiveAdapter
获取时直接传入相对时间,还是0点可能会出问题,使用path.join而不是直接拼接地址
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user