Skip to main content

sanitize_path_component

Function sanitize_path_component 

Source
pub fn sanitize_path_component(path: &str) -> String
Expand description

Sanitize a path component for use as a directory name. Keeps alphanumeric, -, _, .. Replaces everything else with _.