Expand description
Safe module-content tree walk shared by hashing, verification, resource-limit checking, and materialization.
One traversal implementation enforces all module-content rules. The canonical module root is carried through all recursion so containment checks are never relative to the current directory. Directory symlinks are rejected to prevent cycles. File symlinks are allowed when they resolve inside the module root and do not target non-module content.
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.