Remove call to getFileExtension when Lstat fails (#1698)
This commit is contained in:
1 parent
a018257d50
commit
a6375d56c6
1 file changed
+1
-1
@@ -88,7 +88,7 @@ func readdir(path string) ([]*file, error) {
|
|||||||
dirSize: -1,
|
dirSize: -1,
|
||||||
accessTime: time.Unix(0, 0),
|
accessTime: time.Unix(0, 0),
|
||||||
changeTime: time.Unix(0, 0),
|
changeTime: time.Unix(0, 0),
|
||||||
ext: getFileExtension(lstat),
|
ext: "",
|
||||||
err: err,
|
err: err,
|
||||||
})
|
})
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in new issue
Block a user