diff --git a/doc/api/fs.md b/doc/api/fs.md index 350555f2f8ad99..2a38e5b9774fa4 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1277,6 +1277,8 @@ No guarantees are made about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, an attempt will be made to remove the destination. +`fsPromises.copyFile()` always dereferences symlinks. + ```mjs import { copyFile, constants } from 'node:fs/promises'; @@ -2754,6 +2756,8 @@ callback function. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination. +`fs.copyFile()` always dereferences symlinks. + `mode` is an optional integer that specifies the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. @@ -5857,6 +5861,8 @@ already exists. Returns `undefined`. Node.js makes no guarantees about the atomicity of the copy operation. If an error occurs after the destination file has been opened for writing, Node.js will attempt to remove the destination. +`fs.copyFileSync()` always dereferences symlinks. + `mode` is an optional integer that specifies the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g.