doc: add err param to fs.copyFile callback

PR-URL: https://github.com/nodejs/node/pull/53234
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Feng Yu authored and Marco Ippolito committed 2024-07-19 15:27:01 +02:00
1 parent 102e4eee3c
commit 01533df87f
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -2313,6 +2313,7 @@ changes:
* `dest` {string|Buffer|URL} destination filename of the copy operation
* `mode` {integer} modifiers for copy operation. **Default:** `0`.
* `callback` {Function}
* `err` {Error}
Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
already exists. No arguments other than a possible exception are given to the
+1 -1
View File
@@ -2999,7 +2999,7 @@ function mkdtempSync(prefix, options) {
* @param {string | Buffer | URL} src
* @param {string | Buffer | URL} dest
* @param {number} [mode]
* @param {() => any} callback
* @param {(err?: Error) => any} callback
* @returns {void}
*/
function copyFile(src, dest, mode, callback) {