Skip to main content

display_path

Function display_path 

Source
pub fn display_path(path: &str, kind: FsKind, style: PathStyle) -> String
Expand description

Translate a full canonical path into display form for style — used for ls -R directory headers and the shell prompt. PathStyle::Unix (and /-native filesystems) pass through; native rejoins components with the native separator (prefixed, so the root is a bare separator) and reverses the HFS/HFS+ in-name :/ swap.