Remove call to getFileExtension when Lstat fails (#1698)

This commit is contained in:
Mario D'Andrea authored and GitHub committed 2024-05-06 11:15:18 +10:00
1 parent a018257d50
commit a6375d56c6
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ func readdir(path string) ([]*file, error) {
dirSize: -1,
accessTime: time.Unix(0, 0),
changeTime: time.Unix(0, 0),
ext: getFileExtension(lstat),
ext: "",
err: err,
})
continue