pub fn write_atomic_bytes(path: &Path, bytes: &[u8]) -> Result<()>
write_atomic for bytes already in memory.
write_atomic