pub fn expand_path(path: &str) -> Result<PathBuf>
Expands path, supporting ‘~’ for the user’s home directory.