[][src]Function fungus::sys::user::home_dir

pub fn home_dir() -> FuResult<PathBuf>

Returns the full path to the current user's home directory.

Alternate implementation as the Rust std::env::home_dir implementation which has be deprecated https://doc.rust-lang.org/std/env/fn.home_dir.html

Examples

use fungus::prelude::*;

assert!(user::home_dir().is_ok());