traverseAll
option. It would allow to traverse all subdirectories regardless of filter option. #13 (Thanks to @jskrzypek)
- BREAKING Removed
noRecurseOnFailedFilter
option because it was counter-intuitive and confusing.
fs
option. It is useful when mockingfs
object.depthLimit
option. It can be used to specify the number of times to recurse before stopping.
- Use
var
instead oflet
in for loop.
graceful-fs
is now a regular dependency, and is always loaded. This should speed uprequire
time.
- Apply
opts.nodir
andopts.nofile
whenfilter
option is used.
- BREAKING: Removed support for
ignore
option. Instead,filter
option can be used. See: #1
filter
option. A function that gets one argumentfn({path: '', stats: {}})
and returns true to include or false to exclude the item.noRecurseOnFailedFilter
option to prevent unnecessary traversal of unwanted directories whenfilter
function is used.
- Changed to traditional for loop instead of using
Array.forEach()
because of better performance.
- changed handling error to throw the exception
- switched from multimatch to micromatch for matching ignore patterns (showed faster performance)
- bug fixed: normalize root directory to make sure always return absolute paths.
- initial release