arns-lt-tree-push-service/collector.go

15 lines
250 B
Go
Raw Normal View History

2022-08-02 05:16:11 +00:00
package main
import (
zord_tree "g.arns.lt/zordsdavini/zord-tree"
"os"
)
func Collect() {
if _, err := os.Stat(source); os.IsNotExist(err) {
panic("Source directory does not exist.")
}
2023-06-28 21:10:54 +00:00
_ = zord_tree.PopulateTree(source, meta, customMeta)
2022-08-02 05:16:11 +00:00
}