Function get_home
Source pub fn get_home() -> String
Expand description
Retrieves the user’s home directory from the $HOME
environment variable.
§Returns
Path to the user’s home directory.
§Panics
If the $HOME
environment variable is not set.
§Example
use file_io::get_home;
let home: String = get_home();