Skip to main content

Crate aqc_filetree

Crate aqc_filetree 

Source
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§

FileEntry
One entry of a FileTree.
FileTree
The result of a walk: the root plus entries sorted by rel_path.
RecoveryRules
Phase 2 path predicates; OR across fields. Product-specific filename lists live in callers, not in this crate.
WalkOptions
Walk configuration; defaults per plan.md.

Enums§

EntryOrigin
Which phase produced an entry.
FileKind
What a tree entry is.
SkipDirPreset
Skip-list presets; constants only, merged by the caller.
SymlinkPolicy
The only symlink control: traverse, record, or skip.
WalkError
Why a walk failed.

Functions§

build_file_tree
Walk root per options and return the sorted FileTree.