Skip to main content

Module walk

Module walk 

Source
Expand description

Shared directory walker helpers built on the ignore crate.

All file traversal in vtcode should go through these builders so that .gitignore, .ignore, .git/exclude, and the centralized exclusion constants are applied consistently.

Functionsยง

apply_defaults
Apply standard walker defaults to an existing WalkBuilder.
build_default_walker
Build a multi-threaded WalkBuilder with sensible defaults.
build_walker_single_threaded
Build a single-threaded WalkBuilder with the same defaults as build_default_walker.
entry_is_dir
Whether a read_dir entry is a directory, without paying for a stat.
entry_is_file
Whether a read_dir entry is a regular file, without paying for a stat.
is_excluded_dir
Returns true if entry is a directory whose name appears in DEFAULT_EXCLUDED_DIRS.