pub fn write_atomic(path: &Path, content: &str) -> Result<(), Error>
Write a file through a temporary neighbour and a rename, so that a reader never sees half a file.