Fields

file: File,
tmp_path_buf: [TMP_PATH_LEN:0]u8,
dest_basename: []const u8,
file_open: bool,
file_exists: bool,
close_dir_on_deinit: bool,
dir: Dir,

Functions

fn deinit(self: *AtomicFile) void

always call deinit, even after successful finish()

fn finish(self: *AtomicFile) FinishError!void

No documentation provided.

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 funct…

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

Values