safe_join

Function safe_join 

Source
pub fn safe_join(base: &Path, path: &str) -> Result<PathBuf>
Expand description

Safely joins a base path with a relative path, preventing directory traversal.

Validates characters and prevents ../ escape attempts.