AtomicWriteFile writes to a temporary file in the same directory, flushes it, sets the mode and renames it over the target, so a reader never sees a half-written file and a failure leaves the old one untouched. Comes with a doc comment and table-driven tests. (closes #17) Model: opus-5
3.2 KiB
3.2 KiB