Skip to main content

expand_home

Function expand_home 

Source
pub fn expand_home(path: &str) -> Result<PathBuf, NoHomeFolder>
Expand description

path with a leading ~ standing for the user’s home folder.

§Errors

When path starts with ~ and the home folder can’t be found.