Skip to content

Commit

Permalink
Merge pull request #99 from patricklx/patch-1
Browse files Browse the repository at this point in the history
fix windows hard links
  • Loading branch information
ef4 authored Jun 25, 2024
2 parents 698f313 + ac29a95 commit 9a4a99c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a4a99c

Please sign in to comment.