From ac29a955ba67da853642d2def9f8d0aae78010c0 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Sat, 22 Jun 2024 21:16:52 +0200 Subject: [PATCH] fix windows hard links --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index f44e48e..c60f5ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -652,10 +652,9 @@ export class Project { if (err.code === 'EEXIST') { debugger; } - if (err.code !== 'EXDEV') { - throw err; + if (err.code === 'EXDEV') { + this.usingHardLinks = false; } - this.usingHardLinks = false; } } fs.copyFileSync(source, destination, fs.constants.COPYFILE_FICLONE | fs.constants.COPYFILE_EXCL);