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 3cb31ef commit 7c1435bCopy full SHA for 7c1435b
.github/actions/cache-query-compilation/move-caches.js
@@ -26,11 +26,10 @@ function* walkCaches(dir) {
26
}
27
28
async function copyDir(src, dest) {
29
- for await (const file of await fs.promises.readdir(src)) {
30
- const srcPath = path.join(src, file);
31
- const destPath = path.join(dest, file);
32
- const stat = await fs.promises.stat(srcPath);
33
- if (stat.isDirectory()) {
+ for await (const file of await fs.promises.readdir(src, { withFileTypes: true })) {
+ const srcPath = path.join(src, file.name);
+ const destPath = path.join(dest, file.name);
+ if (file.isDirectory()) {
34
if (!fs.existsSync(destPath)) {
35
fs.mkdirSync(destPath);
36
0 commit comments