mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
[bot] Update dist directory
This commit is contained in:
committed by
github-actions[bot]
parent
48353a25ca
commit
4a0951b3dc
13
dist/setup-gradle/post/index.js
vendored
13
dist/setup-gradle/post/index.js
vendored
@@ -182547,9 +182547,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user