System module

get_home_directory

procedureSource

Returns the home directory of username, or of the current user when it is empty, and whether the lookup worked.

Example↗
home, ok := get_home_directory();
assert(!ok || home.count > 0);
get_home_directory :: (username := "") -> (string, success: bool)

Parameters

username := ""

Returns

string
success: bool

See also