From 8180c45b6e91c7728dbd0bd8d3ca5a601e61bf2c Mon Sep 17 00:00:00 2001 From: Alex Hoyau Date: Wed, 20 Jan 2021 11:48:40 +0100 Subject: [PATCH] local file system supports symlinks --- lib/unifile-fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;