Skip to main content

save_local

Function save_local 

Source
pub fn save_local(path: &Path, config: &File) -> Result<()>
Expand description

Writes a configuration file back to disk, replacing it in one step.

This file carries the driver registration, so a half-written one leaves git with no filter and the next git add storing plaintext with exit code 0.

ยงErrors

Error::Io when the file cannot be written.