Skip to content

fs: change default mode to COPYFILE_FICLONE

Change default value of mode to COPYFILE_FICLONE in fs.copyFile and fs.copyFileSync.

If copy-on-write is not supported, fallback copy mechanism will be used.

Fixes: https://github.com/nodejs/node/issues/47861

I am aware that the discussion is still very nascent. If we are not going to do this or if we are going in different direction, feel free to close this PR.

TODO:

  • Update commit message

Merge request reports

Loading