pub fn get_dir_name<T: Debug + Display>(arg_string_path: &T) -> Option<String>
Returns a string or None which is the path to the current working directory
let result = match get_dir_name( &“/A/B/C” ) { Some( string_result ) => { string_result } None => { panic!( “Failed to get dirname.” ) } }; // result = “/A/B”