Skip to main content

save

Function save 

Source
pub fn save(path: &Path, file: &ConfigFile) -> Result<(), String>
Expand description

Rewrites the whole file atomically: writes a temporary file next to it and renames it over the original. On Unix the file is created with 0600 permission.