From a238bf297e3a90b8a81b57bc01cebe6783f91470 Mon Sep 17 00:00:00 2001 From: M1andy's debian Date: Thu, 20 Oct 2022 20:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=A3=80=E7=B4=A2=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=96=87=E4=BB=B6?= 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 70d5176..a1433c1 100644 --- a/main.go +++ b/main.go @@ -3,14 +3,14 @@ package main import ( "MovieDataCapture/utils" "fmt" - "log" ) func main() { - config, err := utils.LoadConfig() - if err != nil { - log.Fatalf("load config error: %v", err) + for _, file := range utils.VideoList { + if info, err := file.Info(); err == nil { + fmt.Printf("file name: %s\n", info.Name()) + } else { + fmt.Printf("%s", err) + } } - fmt.Printf("%v\n", config) - }