fn write_atomic(path: &Path, contents: &[u8]) -> Result<(), StorageError>Expand description
Writes to a temporary file, flushes it, and moves it over path, so a crash leaves either
the old or the new file. On Unix the file is readable only by its owner.