测试检索本地文件
This commit is contained in:
parent
884d440da7
commit
a238bf297e
12
main.go
12
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)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue