fn init(dest_basename: []const u8, mode: File.Mode, dir: Dir, close_dir_on_deinit: bool) InitError!AtomicFile

Note that the Dir.atomicFile API may be more handy than this lower-level function.

Parameters

dest_basename: []const u8,
mode: File.Mode,
dir: Dir,
close_dir_on_deinit: bool,