18 lines
359 B
Go
18 lines
359 B
Go
package main
|
|
|
|
import (
|
|
zord_tree "g.arns.lt/zordsdavini/zord-tree"
|
|
"os"
|
|
)
|
|
|
|
func Collect() {
|
|
if _, err := os.Stat(dest); os.IsNotExist(err) {
|
|
panic("Destination directory does not exist.")
|
|
}
|
|
|
|
if _, err := os.Stat(source); os.IsNotExist(err) {
|
|
panic("Source directory does not exist.")
|
|
}
|
|
|
|
_ = zord_tree.PopulateTree(source, dest, meta, customMeta)
|
|
}
|