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

This attempts to get the full path

If the conversion fails, this will return the ‘most complete’ string it built up to that point.

Since canonicalize requires the paths to exist, if the argument doesn’t exist in this case this function will return the path with the expanded tilde, but will still contain any positional elements (ie ‘..’)

This supports ‘~’, ‘.’, ‘..’

Arguments

  • arg_string_path: string-like

Examples

let string_absolute_path = get_absolute_path( &string_path_relative );