Function needs_normalize

Source
pub fn needs_normalize(path: &Utf8Path) -> bool
Expand description

Checks if a path needs normalization.

  • If it contains a \
  • If it has two or more consecutive //
  • If it contains one or more /./

Note: This performs a single pass and returns as early as possible.