the directory to create Info must contain a file at least

This commit is contained in:
xgfone
2021-02-08 16:34:25 +08:00
parent fd3825a27b
commit 55d5ad3494

View File

@ -80,6 +80,10 @@ func getAllInfoFiles(rootDir string) (files []File, err error) {
return nil
})
if err == nil && len(files) == 0 {
err = fmt.Errorf("no files in the directory '%s'", rootDir)
}
return
}