disable panic in reat dir error

This commit is contained in:
cyber-dream 2023-02-08 15:51:35 +03:00
parent 682750ff48
commit 1a2732df7a

View File

@ -50,7 +50,6 @@ func RecursiceWalk(pathToWalk string) ([]string, error) {
func ListDir(path string) ([]fs.FileInfo, error) {
files, err := ioutil.ReadDir(path)
if err != nil {
log.Fatal(err)
return []fs.FileInfo{}, err
}
return files, nil