GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: add args of filter option of fs.cp · nodejs/node@b5ad92f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • fs.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,9 @@ changes:
971971
* `filter` {Function} Function to filter copied files/directories. Return
972972
`true` to copy the item, `false` to ignore it. Can also return a `Promise`
973973
that resolves to `true` or `false` **Default:** `undefined`.
974+
* `src` {string} source path to copy.
975+
* `dest` {string} destination path to copy to.
976+
* Returns: {boolean|Promise}
974977
* `force` {boolean} overwrite existing file or directory. The copy
975978
operation will ignore errors if you set this to false and the destination
976979
exists. Use the `errorOnExist` option to change this behavior.
@@ -2265,6 +2268,9 @@ changes:
22652268
* `filter` {Function} Function to filter copied files/directories. Return
22662269
`true` to copy the item, `false` to ignore it. Can also return a `Promise`
22672270
that resolves to `true` or `false` **Default:** `undefined`.
2271+
* `src` {string} source path to copy.
2272+
* `dest` {string} destination path to copy to.
2273+
* Returns: {boolean|Promise}
22682274
* `force` {boolean} overwrite existing file or directory. The copy
22692275
operation will ignore errors if you set this to false and the destination
22702276
exists. Use the `errorOnExist` option to change this behavior.
@@ -5077,6 +5083,9 @@ changes:
50775083
exists, throw an error. **Default:** `false`.
50785084
* `filter` {Function} Function to filter copied files/directories. Return
50795085
`true` to copy the item, `false` to ignore it. **Default:** `undefined`
5086+
* `src` {string} source path to copy.
5087+
* `dest` {string} destination path to copy to.
5088+
* Returns: {boolean}
50805089
* `force` {boolean} overwrite existing file or directory. The copy
50815090
operation will ignore errors if you set this to false and the destination
50825091
exists. Use the `errorOnExist` option to change this behavior.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.