Function simpleio::get_home[][src]

pub fn get_home() -> Option<PathBuf>
Expand description

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

Example

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

It returns the same as:

echo "$HOME"