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) - }