Function path_resolve_home

Source
pub fn path_resolve_home(path: &Path) -> Result<PathBuf>
Expand description

Change paths starting with ~/ to replace the ~ with the user’s home directory. Careful: if path is not representable as unicode string, no expansion is attempted!