debug: log files

This commit is contained in:
papeloto 2020-03-21 13:29:35 +01:00
parent 13e70558b7
commit 579632f552
2 changed files with 10 additions and 0 deletions

5
dist/index.js vendored
View file

@ -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 {

View file

@ -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 {