pub fn expand_to_real_path<P>(path: P) -> PathBuf
Expand description
Resolve to a path that is accepted by the system and no further - tilde is expanded, and ndot path components are expanded.
This function will take a leading tilde path component, and expand it to the user’s home directory;
it will also expand any path elements consisting of only dots into the correct number of ..
path elements.
It does not do any normalization except to what will be accepted by Path::open,
and it does not touch the system at all, except for getting the home directory of the current user.