Skip to main content

save

Function save 

Source
pub fn save(path: &Path, config: &Config) -> Result<(), CoreError>
Expand description

Persist config to path, creating parent dirs. The file is written — and re-asserted — with 0600 permissions on unix (Pitfall 3.6 prevention, verified by test).