Skip to main content

display_path

Function display_path 

Source
pub fn display_path(p: &Path) -> String
Expand description

Strip the Windows \\?\ extended-path prefix from a path string for display purposes only. The stored/internal path is never modified.

Conversions: \\?\UNC\server\share\\server\share \\?\C:\fooC:\foo anything else → unchanged

On non-Windows this is a no-op; the prefix never appears there.