Skip to main content

Module tree

Module tree 

Source
Expand description

Filesystem traversal that produces TreeEntry lists for substrate tree hashing.

Implements substrate::DirReader for real filesystem I/O, delegating filtering decisions (exclude_names, follow_rules) to substrate.

Structs§

FsReader
Real filesystem reader with gitignore-style follow_rules support.

Functions§

check_no_symlinks
Check that a directory tree contains no symlinks (respecting exclude_names and follow_rules).
compute_tree_hash
Convenience: walk + compute hash in one call.
walk_dir
Walk a directory and produce in-memory TreeEntry values.