Skip to main content

validate_relative_path

Function validate_relative_path 

Source
pub fn validate_relative_path(
    path: &str,
    what: &str,
) -> Result<String, RuntimeError>
Expand description

Validate a relative path: no empty components, no ./.., no leading /, no NUL, no backslash. Returns the normalized path.