Skip to main content

write_known_hosts

Function write_known_hosts 

Source
pub fn write_known_hosts(path: &Path, entries: &[HostEntry]) -> Result<()>
Expand description

Rewrite path with update_known_hosts, creating it (and its directory) as needed. Written whole, then renamed into place.