pub fn write_atomically( path: impl AsRef<Path>, data: &[u8], ) -> Result<(), ApplyError>
Replaces a file atomically using a temporary file in the same directory.