fn atomicFile(self: Dir, dest_path: []const u8, options: AtomicFileOptions) !AtomicFile

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.

Parameters

self: Dir,
dest_path: []const u8,