Expand description
Walk one filesystem directory root, return a FileTree.
No Git commands, no file reads, no parsing, no product policy. Two phases:
phase 1 is gitignore-aware; phase 2 (opt-in via RecoveryRules) walks
WITHOUT gitignore and recovers specific paths from ignored trees, tagged
EntryOrigin::Recovered. Contract: plan.md in this directory.
Structs§
- File
Entry - One entry of a
FileTree. - File
Tree - The result of a walk: the root plus entries sorted by
rel_path. - Recovery
Rules - Phase 2 path predicates; OR across fields. Product-specific filename lists live in callers, not in this crate.
- Walk
Options - Walk configuration; defaults per
plan.md.
Enums§
- Entry
Origin - Which phase produced an entry.
- File
Kind - What a tree entry is.
- Skip
DirPreset - Skip-list presets; constants only, merged by the caller.
- Symlink
Policy - The only symlink control: traverse, record, or skip.
- Walk
Error - Why a walk failed.
Functions§
- build_
file_ tree - Walk
rootperoptionsand return the sortedFileTree.