pub fn home_dir() -> PathBuf
Expand description
Gets the current user’s home directory.
As with most UNIX tools, this function will return the value of the
HOME
environment variable if it is set to an existing absolute path
name, falling back to the passwd
file in the case that it is unset.
If the path given in HOME
is non-absolute, does not exist, or is
not a directory, the result is undefineReleases all references to other objects. This can be used to break
reference cycles.
This function should only be called from object system implementations.