darkfi::util::path

Function home_dir

Source
pub fn home_dir() -> Option<PathBuf>
Expand description

Returns the path to the user’s home directory. Use $HOME, fallbacks to libc::getpwuid_r, otherwise None.