Skip to main content

normalize_path

Function normalize_path 

Source
pub fn normalize_path<P: AsRef<Path>>(path: P) -> Result<String>
Expand description

Normalize a path for consistent storage and comparison across platforms

  • Uses forward slashes as separators for storage
  • Handles case normalization on Windows drive letters
  • Only converts to absolute if the path is actually relative