Crate fuzzypath[][src]

Expand description

A lossy representation of a path using a String for quick and dirty fuzzy comparison.

This type deliberately does not implement PartialEq for any other types. You should only compare FuzzyPath with another FuzzyPath, as the normalization must take place.

Comparison rules

  • ✅ Case insensitive
  • ✅ Backslashes are normalized to forward slashes
  • ✅ Trailing slashes are removed, except for root slash (for absolute POSIX paths)
  • ✅ Repeating slashes are normalized to a single slash
  • ❌ Comparing a Windows path with a POSIX path will not work if either is absolute (Windows paths with a drive letter, POSIX paths with a preceeding slash)
  • ❌ Comparing a Windows UNC path will not work with any POSIX path

Structs

A lossy representation of a path using a String for quick and dirty fuzzy comparison.