pub fn resolve_homedir(path: &dyn AsRef<Path>) -> PathBuf
Replaces a “~” in the Path with the home directory.