Skip to main content

safe_join

Function safe_join 

Source
pub fn safe_join(
    root: &Path,
    user_path: &str,
) -> Result<PathBuf, PathSecurityError>
Expand description

Safely join a user-provided path to a root directory Validates that the result stays within the root