WalkOptions | path-scurry (original) (raw)

Options provided to all walk methods.

Hierarchy

Index

Properties

Optional filter

filter?: ((entry: PathBase) => boolean)

Type declaration

Optional follow

follow?: boolean

Attempt to read directory entries from symbolic links. Otherwise, only actual directories are traversed. Regardless of this setting, a given target path will only ever be walked once, meaning that a symbolic link to a previously traversed directory will never be followed.

Setting this imposes a slight performance penalty, because readlink must be called on all symbolic links encountered, in order to avoid infinite cycles.

Default

false

Optional walkFilter

walkFilter?: ((entry: PathBase) => boolean)

Type declaration

Optional withFileTypes

withFileTypes?: boolean

Return results as PathBase objects rather than strings. When set to false, results are fully resolved paths, as returned byfullpath.

Default

true