mirror of
https://github.com/papeloto/action-zip
synced 2024-11-22 05:29:35 -08:00
debug: log files
This commit is contained in:
parent
13e70558b7
commit
579632f552
2 changed files with 10 additions and 0 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -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 {
|
||||
|
|
5
index.js
5
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 {
|
||||
|
|
Loading…
Reference in a new issue