nu_path::dots

Function expand_ndots

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

Normalize the path, expanding occurrences of n-dots.

It performs the same normalization as nu_path::components(), except it also expands n-dots, such as “…” and “….”, into multiple “..”.

The resulting path will use platform-specific path separators, regardless of what path separators was used in the input.