Interface WalkOptions
canonicalize?: boolean;
exts?: string[];
followSymlinks?: boolean;
includeDirs?: boolean;
includeFiles?: boolean;
includeSymlinks?: boolean;
match?: RegExp[];
maxDepth?: number;
skip?: RegExp[];
}
Properties
Optionalcanonicalize
Indicates whether the followed symlink's path should be canonicalized.
This option works only if followSymlinks is not false.
Optionalexts
List of file extensions used to filter entries. If specified, entries without the file extension specified by this option are excluded.
File extensions with or without a leading period are accepted.
OptionalfollowSymlinks
Indicates whether symlinks should be resolved or not.
OptionalincludeDirs
Indicates whether directory entries should be included or not.
OptionalincludeFiles
Indicates whether file entries should be included or not.
OptionalincludeSymlinks
Indicates whether symlink entries should be included or not.
This option is meaningful only if followSymlinks is set to false.
Optionalmatch
List of regular expression patterns used to filter entries. If specified, entries that do not match the patterns specified by this option are excluded.
OptionalmaxDepth
The maximum depth of the file tree to be walked recursively.
Optionalskip
List of regular expression patterns used to filter entries. If specified, entries matching the patterns specified by this option are excluded.
Options for
walkandwalkSync.