Skip to main content

validate_path

Function validate_path 

Source
pub fn validate_path(name: &str, data_dir: &Path) -> Result<()>
Expand description

Validate a memory file path, rejecting traversal attacks and unsafe names.