pub fn home_dir() -> PathBuf
Expand description

Returns the current user’s home directory.

  • Windows: The “known folder” FOLDERID_Profile, fallback to %USERPROFILE%.
  • macOS/Linux/BSD: The value of $HOME.