You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-35Lines changed: 10 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,10 +138,10 @@ The current working directory in which to search.
138
138
139
139
#### deep
140
140
141
-
* Type: `number|boolean`
142
-
* Default: `true`
141
+
* Type: `number`
142
+
* Default: `Infinity`
143
143
144
-
The deep option can be set to `true` to traverse the entire directory structure, or it can be set to a *number* to only traverse that many levels deep. The countdown begins with `1`.
144
+
The deep option can be set to `Infinity` to traverse the entire directory structure, or it can be set to a *number* to only traverse that many levels deep. The countdown begins with `1`.
145
145
146
146
For example, you have the following tree:
147
147
@@ -180,6 +180,13 @@ An array of glob patterns to exclude matches.
180
180
181
181
Allow patterns to match filenames starting with a period (files & directories), even if the pattern does not explicitly have a period in that spot.
182
182
183
+
#### objectMode
184
+
185
+
* Type: `boolean`
186
+
* Default: `false`
187
+
188
+
Return an [`Entry`](#entry) object instead of filepath.
189
+
183
190
#### stats
184
191
185
192
* Type: `boolean`
@@ -291,38 +298,6 @@ Allow glob patterns without slashes to match a file path based on its basename.
291
298
Suppress any errors from reader. Works only with Node.js 10.10+.
292
299
Can be useful when the directory has entries with a special level of access.
293
300
294
-
#### transform
295
-
296
-
* Type: `Function`
297
-
* Default: `null`
298
-
299
-
Allows you to transform a path or `fs.Stats` object before sending to the array.
0 commit comments