Expand description
Safe module-content tree walk shared by hashing, verification, resource-limit checking, and materialization.
One traversal implementation enforces all module-content rules. Symbolic links are not permitted anywhere in a module tree: any symlink encountered during the walk makes the module invalid, per the module specification.
Structs§
- Tree
Stats - Statistics collected during a tree walk.
Enums§
- Module
Walk Error - An error encountered while walking a module tree.
- Walk
Error - The error type for
walk_module_tree. Wraps both walk-layer errors and visitor errors.
Functions§
- walk_
module_ tree - Walks every regular file under
root, enforcing containment and metadata exclusion. Callsvisitorfor each file with its path and size. Returns aggregate statistics.