Function nu_path::expand_path[][src]

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

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

The function works in a “best effort” mode: It does not fail but rather returns the unexpanded version if the expansion is not possible.

Furthermore, unlike canonicalize(), it does not use sys calls (such as readlink).

Does not convert to absolute form nor does it resolve symlinks.