Expand description
Atomic file replacement shared by every crate that persists state.
write_atomic is the one implementation of “write a temp file next to the
target, then rename it into place”. Callers keep their own directory
creation and any policy about symlinks; this module only guarantees that a
reader sees the old file or the new one, never part of one.
Structs§
Functions§
- write_
atomic bytestopathso a reader sees the old file or the new one, never part of one.