测试检索本地文件

This commit is contained in:
M1andy's debian 2022-10-20 20:59:13 +08:00
parent 884d440da7
commit a238bf297e
1 changed files with 6 additions and 6 deletions

12
main.go
View File

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