Skip to content

Commit a11e966

Browse files
committed
fixup!
1 parent 0c11718 commit a11e966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generators/legacy-html/utils/safeCopy.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
import { copyFile, readdir, stat } from 'node:fs/promises';
3+
import { copyFile, readdir, stat, constants } from 'node:fs/promises';
44
import { join } from 'node:path';
55

66
/**
@@ -34,6 +34,6 @@ export async function safeCopy(srcDir, targetDir) {
3434

3535
// Use copyFile with COPYFILE_FICLONE flag for efficient copying
3636
// This is atomic and handles concurrent operations better than manual read/write
37-
await copyFile(sourcePath, targetPath);
37+
await copyFile(sourcePath, targetPath, constants.COPYFILE_FICLONE);
3838
}
3939
}

0 commit comments

Comments
 (0)