Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/api/fs.md
Original file line numberDiff line numberDiff 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 DownExpand Up@@ -2476,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
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line numberDiff line numberDiff 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 DownExpand 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