Documentation
¶
Overview ¶
Package atomicfile writes a file durably. Content is written to a temp file in the destination directory, then renamed into place, so a concurrent reader never observes a partial file. Parent directories are created and the temp file is removed on any error. It consolidates several hand-rolled copies (task state, team graph, history + session stores) that had diverged — two of them used a non-atomic WriteFile+Rename that leaked a stray .tmp on a crash between write and rename.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.