We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8f03d commit 7fa14fcCopy full SHA for 7fa14fc
doc/api/fs.md
@@ -1102,6 +1102,9 @@ changes:
1102
* `exclude` {Function|string\[]} Function to filter out files/directories or a
1103
list of glob patterns to be excluded. If a function is provided, return
1104
`true` to exclude the item, `false` to include it. **Default:** `undefined`.
1105
+ If a string array is provided, each string should be a glob pattern that
1106
+ specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are
1107
+ not supported.
1108
* `withFileTypes` {boolean} `true` if the glob should return paths as Dirents,
1109
`false` otherwise. **Default:** `false`.
1110
* Returns: {AsyncIterator} An AsyncIterator that yields the paths of files
0 commit comments