From 1e64e52298be93f46bee98291c350a2c3f6f1ff4 Mon Sep 17 00:00:00 2001 From: DetachHead Date: Sat, 26 Dec 2020 23:26:27 +1000 Subject: [PATCH] fix reading directories --- cli/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/index.js b/cli/src/index.js index ba1107ee..c58d99c2 100644 --- a/cli/src/index.js +++ b/cli/src/index.js @@ -189,7 +189,7 @@ async function getInputFiles(paths) { for (const path of paths) { //allow paths ending in / of \ to get all files in that directory const files = path.endsWith('/') || path.endsWith('\\') - ? await fs.readdir(paths) + ? (await fsp.readdir(path)).map(file => join(path, file)) : [path]; for (const file of files) { try {