Skip to main content

write_atomic

Function write_atomic 

Source
pub fn write_atomic(path: &Path, bytes: &[u8]) -> Result<(), ExecuteError>
Expand description

Through a temp file renamed into place, since a truncated file would be loaded by the game and then hash as someone else’s change.