skip files with stat errors while reading dirs

cc #741 #769
This commit is contained in:
Gokcehan committed 2022-03-19 00:26:42 +03:00
1 parent 076ab8ea9d
commit c712d304f2
1 file changed
+2 -1
+2 -1
View File
@@ -65,7 +65,8 @@ func readdir(path string) ([]*file, error) {
continue
}
if err != nil {
return files, err
log.Printf("getting file information: %s", err)
continue
}
var linkState linkState