Skip to main content

resolve_ssh_dir

Function resolve_ssh_dir 

Source
pub fn resolve_ssh_dir(paths: Option<&Paths>) -> Option<PathBuf>
Expand description

Resolve the SSH directory (~/.ssh) from the injected paths. Returns None when the home directory is unknown, so callers can short-circuit cleanly. Tests pass a sandboxed Paths instead of touching the real ~/.ssh.