is_path_within_root

Function is_path_within_root 

Source
pub fn is_path_within_root(path: &Path, root: &Path) -> bool
Expand description

Check if a path is within the project root (for sandbox enforcement)