pub fn home_dir() -> Result<PathBuf, PathError>
Returns the current user’s home directory.
Returns PathError::HomeUnavailable when the standard library cannot determine a home directory for the current user.
PathError::HomeUnavailable