Skip to main content

home_relative_path

Function home_relative_path 

Source
pub fn home_relative_path(path: &Path) -> String
Expand description

Renders path relative to the user’s home directory (~/…) when it lives inside it, mirroring the way shells display paths.