Expand description
Filesystem path utilities
Functions§
- Returns
$XDG_CONFIG_HOME
,$HOME/.config
, orNone
. - Returns the path to the user’s home directory. Use
$HOME
, fallbacks tolibc::getpwuid_r
, otherwiseNone
. - home_fallback 🔒 ⚠Get the home directory from the passwd entry of the current user using
getpwuid_r(3)
. If it manages, returns anOsString
, otherwise returnsNone
. - Join a path with
config_dir()/darkfi
.