Skip to main content

Module walker

Module walker 

Source
Expand description

Recursive candidate collection on top of walkdir (DESIGN.md §6).

  • Symlinks are never followed (invariant #9); symlinked files are also skipped entirely.
  • Excluded directories are pruned during traversal (never descended into).
  • The root entry itself is always kept: an explicitly given --root must be honored even when its basename collides with an exclusion rule.
  • Walk errors (permission, …) are collected as warnings, never fatal.

Structs§

WalkResult
Collected candidates plus non-fatal traversal warnings.

Functions§

collect_files
Collect whitelisted files under root, sorted by path (invariant #8).