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/gif" // 导入gif支持
|
||||||
_ "image/jpeg" // 导入jpeg支持
|
_ "image/jpeg" // 导入jpeg支持
|
||||||
_ "image/png" // 导入png支持
|
_ "image/png" // 导入png支持
|
||||||
|
"os"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//rootDir, err := os.Getwd()
|
rootDir, err := os.Getwd()
|
||||||
//if err != nil {
|
if err != nil {
|
||||||
// fmt.Println("=== 获取当前路径异常", err)
|
fmt.Println("=== 获取当前路径异常", err)
|
||||||
// return
|
return
|
||||||
//}
|
}
|
||||||
rootDir := "G:\\DZL_DATA\\D20240630\\Video\\other"
|
|
||||||
scanner := core.FileScanner{}
|
scanner := core.FileScanner{}
|
||||||
scanner.DoScan(rootDir)
|
scanner.DoScan(rootDir)
|
||||||
scanner.DoFilter()
|
scanner.DoFilter()
|
||||||
|
|
Loading…
Reference in New Issue