WalkPathsOptions
WalkPathsOptions =
object
Defined in: packages/node/src/fs/walk-paths.ts:31
Properties
Section titled “Properties”descend?
Section titled “descend?”
readonlyoptionaldescend?:boolean|PathFilter|null
Defined in: packages/node/src/fs/walk-paths.ts:51
Which directories to descend into.
Defaults to true when any include glob contains **, and to false
otherwise — a regular expression or a predicate says nothing about depth,
so it stays flat. An explicit value always wins over that default.
exclude?
Section titled “exclude?”
readonlyoptionalexclude?:PathFilter| readonlyPathFilter[] |null
Defined in: packages/node/src/fs/walk-paths.ts:42
Drops the matching paths, and never descends into a matching directory. This is the pruning knob: an excluded subtree costs nothing.
followSymlinks?
Section titled “followSymlinks?”
readonlyoptionalfollowSymlinks?:boolean|null
Defined in: packages/node/src/fs/walk-paths.ts:62
Descends through symbolic links to directories. Default false.
Enabling it costs a stat and a realpath per symlink encountered, which
is what makes a link back to an ancestor detectable instead of endless.
include?
Section titled “include?”
readonlyoptionalinclude?:PathFilter| readonlyPathFilter[] |null
Defined in: packages/node/src/fs/walk-paths.ts:36
Yields only the paths matching one of these. Default: every path.
maxDepth?
Section titled “maxDepth?”
readonlyoptionalmaxDepth?:number|null
Defined in: packages/node/src/fs/walk-paths.ts:54
Hard depth cap; 1 is the root’s own entries. Default: unbounded.
readonlyoptionalroot?:string|null
Defined in: packages/node/src/fs/walk-paths.ts:33
Directory the walk starts from, and paths are relative to. Default ".".
signal?
Section titled “signal?”
readonlyoptionalsignal?:AbortSignal|null
Defined in: packages/node/src/fs/walk-paths.ts:67
unreadable?
Section titled “unreadable?”
readonlyoptionalunreadable?:UnreadablePolicy|null
Defined in: packages/node/src/fs/walk-paths.ts:65
Default "require-root".