pub fn expand_path(path: impl AsRef<Path>, need_expand_tilde: bool) -> PathBuf
Resolve only path components (tilde, ., .., …+), if possible.
Doesn’t convert to absolute form or use syscalls. Output may begin with “../”