mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: clarify glob's exclude option behavior
Add a note that negation patterns are not supported. PR-URL: https://github.com/nodejs/node/pull/59245 Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
1 parent
5a8f03df9e
commit
7fa14fcf54
1 file changed
+3
@@ -1102,6 +1102,9 @@ changes:
|
||||
* `exclude` {Function|string\[]} Function to filter out files/directories or a
|
||||
list of glob patterns to be excluded. If a function is provided, return
|
||||
`true` to exclude the item, `false` to include it. **Default:** `undefined`.
|
||||
If a string array is provided, each string should be a glob pattern that
|
||||
specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are
|
||||
not supported.
|
||||
* `withFileTypes` {boolean} `true` if the glob should return paths as Dirents,
|
||||
`false` otherwise. **Default:** `false`.
|
||||
* Returns: {AsyncIterator} An AsyncIterator that yields the paths of files
|
||||
|
||||
Reference in new issue
Block a user