pub fn resolve_path(path: &str, base: &Path) -> PathBuf
Expands a leading ~/ and resolves a relative path against base.
~/
base