Skip to main content

save_hosts

Function save_hosts 

Source
pub fn save_hosts(hosts: &HostsFile) -> Result<(), HostError>
Expand description

Save hosts configuration to hosts.json

Creates the config directory if it doesn’t exist. Creates a backup (.bak) if file already exists.