We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05d95b7 commit c6d174aCopy full SHA for c6d174a
index.js
@@ -5,17 +5,13 @@ import * as paths from "path";
5
6
async function walk(dir) {
7
let files = fs.readdirSync(dir, { withFileTypes: true });
8
- info("directory: " + dir + ", files: " + JSON.stringify(files));
9
files = await Promise.all(
10
files.map(async (dirEnt) => {
11
const filePath = paths.join(dir, dirEnt.name); // dirEnt.path does not yet exist in nodejs 16.16.0
12
- info("filePath: " + filePath);
13
if (dirEnt.isDirectory()) {
14
- info("found directory: " + filePath);
15
return walk(filePath);
16
} else {
17
if (dirEnt.isFile()) {
18
- info("found file: " + filePath);
19
return filePath;
20
}
21
0 commit comments