diff --git a/src/spec-utils/pfs.ts b/src/spec-utils/pfs.ts index 1e42a927c..5036e3eb9 100644 --- a/src/spec-utils/pfs.ts +++ b/src/spec-utils/pfs.ts @@ -15,7 +15,7 @@ export function isLocalFile(filepath: string): Promise { } export function isLocalFolder(filepath: string): Promise { - return new Promise(r => fs.stat(filepath, (err, stat) => r(!err && stat.isDirectory()))); + return new Promise(r => fs.realpath(filepath, (err,rpath) => r(!err && fs.stat(rpath, (err, stat) => (!err && stat.isDirectory()))))); } export const readLocalFile = promisify(fs.readFile);