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 {