fn remove_invalid_chars(&self, dir_name: &str) -> String {
        dir_name
            .chars()
            .map(|e| match e {
                '?' | ':' | '*' | '<' | '>' | '\"' | '|' => '_',
                _ => e,
            })
            .collect()
    }
/// Removes invalid characters from directory name.
Removes invalid characters from directory name.
Removes invalid characters from directory name .
fn remove_invalid_chars(&self, dir_name: &str) -> String {
        dir_name
            .chars()
            .map(|e| match e {
                '?' | ':' | '*' | '<' | '>' | '\"' | '|' => '_',
                _ => e,
            })
            .collect()
    }
fn remove_invalid_chars ( & self , dir_name : & str ) -> String { dir_name . chars ( ) . map ( | e | match e { '?' | ':' | '*' | '<' | '>' | '\"' | '|' => '_' , _ => e , } ) . collect ( ) }
Removes invalid characters from directory name.
Removes invalid characters from directory name .
&self
dir_name
&str
&self
dir_name
&str