Skip to main content

normalize_for_key

Function normalize_for_key 

Source
pub fn normalize_for_key(path: &Path) -> String
Expand description

Normalize a path into a stable string key for hashing and comparisons.

This is the shared representation for path-based cache keys. It avoids filesystem access, strips Windows extended-length prefixes, normalizes separators, and folds case on case-insensitive platforms.