pub fn path_resolve_home(path: &Path) -> Result<PathBuf>
Change paths starting with ~/ to replace the ~ with the user’s home directory. Careful: if path is not representable as unicode string, no expansion is attempted!
~/
~