pub fn resolve_path(path: &str, cwd: &Path) -> PathBuf
Resolve a path (relative or absolute) against a working directory. Expands ~ to the user’s home directory.
~