[][src]Function skellige::prelude::sys::user::home_dir

pub fn home_dir() -> Result<PathBuf, FuError>

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());