Skip to main content

expand_tilde

Function expand_tilde 

Source
pub fn expand_tilde(path: &str, home: &Path) -> PathBuf
Expand description

Expand a leading ~ or ~/ in path against home. A path that does not begin with a tilde segment is returned unchanged.