Module allowlist

Source

Structs§

PathAllowlist
A hierarchical path allowlist that restricts file system access using a prefix tree (Trie).
TrieNode 🔒

Enums§

AccessLevel
Represents the access level for a path in the allowlist.
ReadDirFilter
Represents a pre-calculated filter for directory entry validation.

Functions§

normalize_lexically 🔒
Normalizes a path lexically by resolving .. and . components. Returns Some(PathBuf) containing an absolute path starting with /, or None if the path is invalid (e.g., attempts to traverse above the root).