Function simpleio::get_home_string

source ·
pub fn get_home_string() -> Result<String, VarError>
Expand description

Returns the home directory of the user as a String.

§Example

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

It returns the same as:

echo "$HOME"