Skip to main content

display_relative

Function display_relative 

Source
pub fn display_relative(base: &Path, path: &Path) -> String
Expand description

Render path relative to base for display, falling back to the file name (then the full path) when path is not under base. Backslashes are normalized to forward slashes so output is stable across platforms.