[bot] Update dist directory

This commit is contained in:
bigdaz
2024-11-12 18:29:16 +00:00
committed by github-actions[bot]
parent 48353a25ca
commit 4a0951b3dc
10 changed files with 55 additions and 20 deletions

View File

@@ -126918,9 +126918,16 @@ async function recursivelyListFiles(baseDir) {
const childrenNames = await readdir(baseDir);
const childrenPaths = await Promise.all(childrenNames.map(async (childName) => {
const childPath = path.resolve(baseDir, childName);
return fs.lstatSync(childPath).isDirectory()
? recursivelyListFiles(childPath)
: new Promise(resolve => resolve([childPath]));
const stat = fs.lstatSync(childPath, { throwIfNoEntry: false });
if (stat === undefined) {
return [];
}
else if (stat.isDirectory()) {
return recursivelyListFiles(childPath);
}
else {
return new Promise(resolve => resolve([childPath]));
}
}));
return Array.prototype.concat(...childrenPaths);
}

File diff suppressed because one or more lines are too long