Skip to main content

resolve_home_dir

Function resolve_home_dir 

Source
pub fn resolve_home_dir() -> PathBuf
Expand description

Resolves the user’s home directory cross-platform: HOME (Unix/macOS), falling back to USERPROFILE (Windows), falling back to the current directory if neither is set — without this fallback, Windows deployments silently resolve config/credential paths to . (cwd) instead of erroring or using the user’s actual profile directory.