expand_tilde

Function expand_tilde

source
pub fn expand_tilde<P: AsRef<Path>>(path: P) -> Result<PathBuf>
Expand description

Expands the tilde (~) component to the home directory.

ยงErrors

Returns an error if the home directory cannot be found.