Make images smaller using best-in-class codecs, right in the browser.
JavaScript
fix reading directories
DetachHead1e64e52298be
diff --git a/cli/src/index.js b/cli/src/index.jsindex 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 directoryconst 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 {