Skip to content

Commit

Permalink
doc: add err param to fs.copyFile callback
Browse files Browse the repository at this point in the history
PR-URL: nodejs#53234
Reviewed-By: LiviaMedeiros <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
F3n67u authored and bmeck committed Jun 22, 2024
1 parent cea3e20 commit 1479461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2388,6 +2388,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
Expand Down
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,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) {
Expand Down

0 comments on commit 1479461

Please sign in to comment.