diff --git a/lib/unifile-fs.js b/lib/unifile-fs.js index c10832c..42e5857 100644 --- a/lib/unifile-fs.js +++ b/lib/unifile-fs.js @@ -92,7 +92,7 @@ class FsConnector { return Fs.readdirPromised(securePath) .reduce((memo, entry) => { if(this.showHiddenFile || entry.charAt(0) != '.') { - return Fs.statPromised(Path.resolve(securePath, entry)) + return Fs.lstatPromised(Path.resolve(securePath, entry)) .then((stat) => { memo.push(statToFileInfos(entry, stat)); return memo;