upd:改版
This commit is contained in:
parent
6400903610
commit
953c3ad067
12
main.go
12
main.go
|
@ -8,16 +8,16 @@ import (
|
|||
_ "image/gif" // 导入gif支持
|
||||
_ "image/jpeg" // 导入jpeg支持
|
||||
_ "image/png" // 导入png支持
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
//rootDir, err := os.Getwd()
|
||||
//if err != nil {
|
||||
// fmt.Println("=== 获取当前路径异常", err)
|
||||
// return
|
||||
//}
|
||||
rootDir := "G:\\DZL_DATA\\D20240630\\Video\\other"
|
||||
rootDir, err := os.Getwd()
|
||||
if err != nil {
|
||||
fmt.Println("=== 获取当前路径异常", err)
|
||||
return
|
||||
}
|
||||
scanner := core.FileScanner{}
|
||||
scanner.DoScan(rootDir)
|
||||
scanner.DoFilter()
|
||||
|
|
Loading…
Reference in New Issue