mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: add args of filter option of fs.cp
add the describe arguments and return value about filter function option of fs.cp PR-URL: https://github.com/nodejs/node/pull/45739 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
e8745083b9
commit
9d6af617ea
1 file changed
+9
@@ -977,6 +977,9 @@ changes:
|
||||
* `filter` {Function} Function to filter copied files/directories. Return
|
||||
`true` to copy the item, `false` to ignore it. Can also return a `Promise`
|
||||
that resolves to `true` or `false` **Default:** `undefined`.
|
||||
* `src` {string} source path to copy.
|
||||
* `dest` {string} destination path to copy to.
|
||||
* Returns: {boolean|Promise}
|
||||
* `force` {boolean} overwrite existing file or directory. The copy
|
||||
operation will ignore errors if you set this to false and the destination
|
||||
exists. Use the `errorOnExist` option to change this behavior.
|
||||
@@ -2282,6 +2285,9 @@ changes:
|
||||
* `filter` {Function} Function to filter copied files/directories. Return
|
||||
`true` to copy the item, `false` to ignore it. Can also return a `Promise`
|
||||
that resolves to `true` or `false` **Default:** `undefined`.
|
||||
* `src` {string} source path to copy.
|
||||
* `dest` {string} destination path to copy to.
|
||||
* Returns: {boolean|Promise}
|
||||
* `force` {boolean} overwrite existing file or directory. The copy
|
||||
operation will ignore errors if you set this to false and the destination
|
||||
exists. Use the `errorOnExist` option to change this behavior.
|
||||
@@ -5107,6 +5113,9 @@ changes:
|
||||
exists, throw an error. **Default:** `false`.
|
||||
* `filter` {Function} Function to filter copied files/directories. Return
|
||||
`true` to copy the item, `false` to ignore it. **Default:** `undefined`
|
||||
* `src` {string} source path to copy.
|
||||
* `dest` {string} destination path to copy to.
|
||||
* Returns: {boolean}
|
||||
* `force` {boolean} overwrite existing file or directory. The copy
|
||||
operation will ignore errors if you set this to false and the destination
|
||||
exists. Use the `errorOnExist` option to change this behavior.
|
||||
|
||||
Reference in new issue
Block a user