pub fn resolve_path(path: &str, cwd: &Path) -> String
Resolve a path pattern: expand ~ to home dir, . and relative paths to absolute.
~
.