pub fn resolve_path(path: &str) -> Result<PathBuf>
Parses the supplied path resolving ~/ to the home directory.
~/