From 579632f552eda7d2f27c48976aa79bffed9edeb2 Mon Sep 17 00:00:00 2001 From: papeloto Date: Sat, 21 Mar 2020 13:29:35 +0100 Subject: [PATCH] debug: log files --- dist/index.js | 5 +++++ index.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dist/index.js b/dist/index.js index e43102f..d2fd017 100644 --- a/dist/index.js +++ b/dist/index.js @@ -76,6 +76,11 @@ files.split(" ").forEach(fileName => { const dir = path.dirname(fileName); const stats = fs.lstatSync(filePath); + console.log(`dir: ${dir}`); + console.log(`Is dir: ${stats.isDirectory()}`); + console.log(`filePath: ${filePath}`); + console.log(`fileName: ${fileName}`); + if (stats.isDirectory()) { zip.addLocalFolder(filePath, dir); } else { diff --git a/index.js b/index.js index 7ad395e..b11d260 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,11 @@ files.split(" ").forEach(fileName => { const dir = path.dirname(fileName); const stats = fs.lstatSync(filePath); + console.log(`dir: ${dir}`); + console.log(`Is dir: ${stats.isDirectory()}`); + console.log(`filePath: ${filePath}`); + console.log(`fileName: ${fileName}`); + if (stats.isDirectory()) { zip.addLocalFolder(filePath, dir); } else {