Expand description
Atomic file writes via tempfile + rename.
Mirrors the Python pattern of os.replace(tmp, target) to ensure
readers never see a partially-written file.
Functionsยง
- atomic_
write - Atomically write
datatopath. - atomic_
write_ json - Atomically write a serde-serializable value as pretty-printed JSON.