Skip to main content

home_dir

Function home_dir 

Source
pub fn home_dir() -> Result<PathBuf, PathError>
Expand description

Returns the current user’s home directory.

§Errors

Returns PathError::HomeUnavailable when the standard library cannot determine a home directory for the current user.