Skip to main content

expand_tilde

Function expand_tilde 

Source
pub fn expand_tilde(s: &str) -> PathBuf
Expand description

Expand a leading ~ or ~/ in a user-supplied path to the user’s home directory. Returns the input unchanged if there is no home dir or no tilde to expand.