expand_path

Function expand_path 

Source
pub fn expand_path(path: impl AsRef<Path>, need_expand_tilde: bool) -> PathBuf
Expand description

Resolve only path components (tilde, ., .., …+), if possible.

Doesn’t convert to absolute form or use syscalls. Output may begin with “../”