Function simpleio::get_home

source ·
pub fn get_home() -> Result<PathBuf, VarError>
Expand description

Returns the home directory of the user as a std::path::PathBuf.

§Example

use simpleio as sio;
println!("{:?}", sio::get_home());

It returns the same as:

echo "$HOME"