@ -162,6 +162,15 @@ func check(err error) {
}
func checkErr(err error, exit bool) {
if err != nil {
log.Println(err)
if exit {
os.Exit(1)
func GetAllFile(pathname string) error {
log.Println("begin for folder ", pathname)
rd, err := ioutil.ReadDir(pathname)