Skip to main content

write_atomically

Function write_atomically 

Source
pub fn write_atomically(
    path: impl AsRef<Path>,
    data: &[u8],
) -> Result<(), ApplyError>
Expand description

Replaces a file atomically using a temporary file in the same directory.