expand_home_dir

Function expand_home_dir 

Source
pub fn expand_home_dir(path: &str) -> Result<PathBuf, String>
Expand description

Expand ~ at the start of a path to the home directory. Rejects ~user/ and paths containing .. components (path traversal).