Skip to main content

Module module_walk

Module module_walk 

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

TreeStats
Statistics collected during a tree walk.

Enums§

ModuleWalkError
An error encountered while walking a module tree.
WalkError
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. Calls visitor for each file with its path and size. Returns aggregate statistics.