From 953c3ad067577d947f794a71aac8cd812358307d Mon Sep 17 00:00:00 2001 From: Odboy Date: Tue, 16 Jul 2024 19:11:35 +0800 Subject: [PATCH] =?UTF-8?q?upd:=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 5f05401..46c9ea8 100644 --- a/main.go +++ b/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()