Skip to content

Commit 9445e96

Browse files
committed
Test
1 parent 276af0a commit 9445e96

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/windows-testing/convert-symlinks.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ async function transformDir(p) {
7070
const wslSubPath = path.relative(rootDir, subPath).replace(/\//g, '\\');
7171
const linkTargetWindowsPath = linkTarget.replace(/\//g, '\\');
7272

73+
if (linkTargetWindowsPath.endsWith('\\has-symbols')) {
74+
console.error('- ', wslSubPath, linkTargetWindowsPath);
75+
}
76+
7377
if ((await fs.stat(realTarget)).isDirectory()) {
7478
// This is a symlink to a directory, create a dir junction.
7579
// Re-create this symlink on the Windows FS using the Windows mklink command.
@@ -82,7 +86,11 @@ async function transformDir(p) {
8286
return;
8387
}
8488

85-
parallelCopyTasks.push(exec(`cp -Rf ${realTarget} ${subPath}`));
89+
parallelCopyTasks.push(
90+
(async () => {
91+
await fs.cp(realTarget, subPath, { recursive: true });
92+
})(),
93+
);
8694
})(),
8795
);
8896
} else if (file.isDirectory()) {

0 commit comments

Comments
 (0)