Skip to main content

normalize_native_path_display

Function normalize_native_path_display 

Source
pub fn normalize_native_path_display(path: impl AsRef<Path>) -> String
Expand description

Normalize a native filesystem path for stable diagnostics and metadata.

On Windows, the returned path uses forward slashes, strips extended path prefixes such as \\?\, and converts extended UNC paths to //server/share form. On Unix, native backslashes are preserved because they are valid filename characters rather than separators. This helper is for legacy compatibility metadata and agent-facing output; use CanonicalProjectRoot for persisted project identity and Path/PathBuf for host filesystem access.