Function is_safe_path

Source
pub fn is_safe_path<P: AsRef<Path>>(base: P, target: P) -> Result<bool>
Expand description

Check if a path is safe to access (no directory traversal)