pub fn normalize_path(filename: &str) -> Result<String, PathError>
Utility function to handle tilde expansion of a path.
PathError::InvalidPath