pub fn atomic_write(path: &Path, bytes: &[u8]) -> Result<(), BaselineError>
Write bytes to path via a same-directory temporary file and rename.
bytes
path