disable panic in reat dir error
This commit is contained in:
parent
682750ff48
commit
1a2732df7a
@ -50,7 +50,6 @@ func RecursiceWalk(pathToWalk string) ([]string, error) {
|
|||||||
func ListDir(path string) ([]fs.FileInfo, error) {
|
func ListDir(path string) ([]fs.FileInfo, error) {
|
||||||
files, err := ioutil.ReadDir(path)
|
files, err := ioutil.ReadDir(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
|
||||||
return []fs.FileInfo{}, err
|
return []fs.FileInfo{}, err
|
||||||
}
|
}
|
||||||
return files, nil
|
return files, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user