arns-lt-tree-push-service/collector.go
Arnas Udovic 46e00f5521
All checks were successful
continuous-integration/drone/push Build is passing
Debug rebuild
2023-06-29 15:33:25 +03:00

19 lines
364 B
Go

package main
import (
zord_tree "g.arns.lt/zordsdavini/zord-tree"
"log"
"os"
)
func Collect() {
log.Println("Collect: start")
if _, err := os.Stat(source); os.IsNotExist(err) {
log.Print(err)
panic("Source directory does not exist.")
}
log.Println("Collect: pre")
_ = zord_tree.PopulateTree(source, meta, customMeta)
log.Println("Collect: post")
}