Skip to main content

Module walk

Module walk 

Source
Expand description

Shared file-selection traversal.

The predicate vocabulary every tool uses to choose which entries to act on — search root, name, kind, size, and whether to descend dot-entries or follow symlinks — lives here so it is identical across the suite: what you learn about targeting from ct-search transfers verbatim to ct-edit. A Selector holds the resolved predicates; Selector::walk yields the entries that pass them, leaving content-level work (grep, replace) to the caller.

Structs§

Selector
Resolved file-selection predicates. Build one, then iterate walk.

Enums§

EntryType
Entry-kind selector for --type.
SizeCmp
A parsed --size predicate, in bytes.

Functions§

parse_size
Parse a --size spec [+|-]N[k|m|g|b] into a SizeCmp.
size_matches
Whether a byte length satisfies a SizeCmp.