Skip to main content

Module fs

Module fs 

Source
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§

WriteOpts

Functions§

write_atomic
bytes to path so a reader sees the old file or the new one, never part of one.