pub fn home_dir() -> crate::Result<PathBuf> {
    let home = match std::env::var("STRONGHOLD") {
        Ok(h) => h.into(),
        Err(_) => dirs::home_dir().unwrap(),
    };
    let home_dir = home.join(format!(".{}", "engine"));

    verify_or_create(&home_dir)?;

    Ok(home_dir)
}
/// get the home directory of the user's device
get the home directory of the user's device
get the home directory of the user ' s device
pub fn home_dir() -> crate::Result<PathBuf> {
    let home = match std::env::var("STRONGHOLD") {
        Ok(h) => h.into(),
        Err(_) => dirs::home_dir().unwrap(),
    };
    let home_dir = home.join(format!(".{}", "engine"));
    verify_or_create(&home_dir)?;
    Ok(home_dir)
}
pub fn home_dir ( ) -> crate :: Result < PathBuf > { let home = match std :: env :: var ( " " ) { Ok ( h ) => h . into ( ) , Err ( _ ) => dirs :: home_dir ( ) . unwrap ( ) , } ; let home_dir = home . join ( format ! ( " " " " ) ) ; verify_or_create ( & home_dir ) ? ; Ok ( home_dir ) }
get the home directory of the user's device
get the home directory of the user ' s device