pub fn sanitize_path(s: &str) -> Cow<str> {
    static SANITIZE_PATH_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#":|\*|\|"#).unwrap());

    SANITIZE_PATH_REGEX.replace_all(s, "_")
}
/// Sanitize path to ensure it does not contain invalid filesystem characters.
Sanitize path to ensure it does not contain invalid filesystem characters.
Sanitize path to ensure it does not contain invalid filesystem characters .
pub fn sanitize_path(s: &str) -> Cow<str> {
    static SANITIZE_PATH_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#":|\*|\|"#).unwrap());
    SANITIZE_PATH_REGEX.replace_all(s, "_")
}
pub fn sanitize_path ( s : & str ) -> Cow < str > { static SANITIZE_PATH_REGEX : Lazy < Regex > = Lazy :: new ( | | Regex :: new ( r#":|\*|\|"# ) . unwrap ( ) ) ; SANITIZE_PATH_REGEX . replace_all ( s , " " ) }
Sanitize path to ensure it does not contain invalid filesystem characters.
Sanitize path to ensure it does not contain invalid filesystem characters .
s
&str