Skip to content

Commit

Permalink
doc: add err param to fs.cp 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 EliphazBouye committed Jun 20, 2024
1 parent fa4e16a commit 96fe5a1
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 @@ -2477,6 +2477,7 @@ changes:
* `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will
be skipped. **Default:** `false`
* `callback` {Function}
* `err` {Error}
Asynchronously copies the entire directory structure from `src` to `dest`,
including subdirectories and files.
Expand Down
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,7 @@ function copyFileSync(src, dest, mode) {
* @param {string | URL} src
* @param {string | URL} dest
* @param {object} [options]
* @param {() => any} callback
* @param {(err?: Error) => any} callback
* @returns {void}
*/
function cp(src, dest, options, callback) {
Expand Down

0 comments on commit 96fe5a1

Please sign in to comment.