get_path_with_tilde_expanded_if_necessary

Function get_path_with_tilde_expanded_if_necessary 

Source
pub fn get_path_with_tilde_expanded_if_necessary<T: Debug + Display>(
    arg_string_path: &T,
) -> String
Expand description

Returns a string with the ‘~’ expanded within the path

§Arguments

  • arg_string_path: this is a string-like reference

§Examples

let string_path = get_path_with_tilde_expanded_if_necessary( “~/test” ); // string_path = ’/Users//test