Function normalize_path

Source
pub(crate) fn normalize_path(path: &Path) -> Option<PathBuf>
Expand description

Normalize a path without performing any filesystem operations.

ยงNotes

  • All redundant separator and ParentDir components are collapsed.
  • This function does not resolve links.
  • For all absolute input paths, it returns Some.
  • For relative input paths, it returns None.