fn atomicFile(self: Dir, dest_path: []const u8, options: AtomicFileOptions) !AtomicFile
[src]
Directly access the .file
field, and then call AtomicFile.finish
to atomically replace dest_path
with contents. Always call AtomicFile.deinit
to clean up, regardless of whether AtomicFile.finish
succeeded. dest_path
must remain valid until AtomicFile.deinit
is called.