mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
102e4eee3c
commit
01533df87f
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user