Skip to main content

validate_rel

Function validate_rel 

Source
pub fn validate_rel(value: &str, what: &str) -> Result<PathBuf>
Expand description

A relative path with only normal components. Rejects absolute paths, .., ., NUL, drive prefixes, and backslash/forward-slash tricks. This is the single gate for every manifest path that reaches the filesystem.