pub fn atomic_write(
path: impl AsRef<Path>,
content: impl AsRef<[u8]>,
fsync: bool,
) -> Result<()>Expand description
Atomically create or replace a file with the given content.
Attempt to use symlinks on unix if SYMLINK_ATOMIC_WRITE is set.