View Source API Reference atomic_writes v1.0.0
Modules
Perform serialized and atomic file writes in Elixir with AtomicWrites. The basic idea is that writes are made to a temporary file and then moved when the write is complete. By default, the temporary write is made to the same file system (so that the move is also atomic) and the move will overwrite any existing file. Both of these options are configurable.
Given a file path (and other optional config), AtomicFile
provides a
write/2
method for serially and atomically writing to the given path.