Create an unnamed ephemeral file that can eventually be atomically
materialized into sub_path.
The returned File.Atomic provides API to emulate the behavior in case it
is not directly supported by the underlying operating system.
sub_path should be encoded as WTF-8.sub_path should be encoded as valid UTF-8.sub_path is an opaque sequence of bytes with no particular encoding.pub fn createFileAtomic(
dir: Dir,
io: Io,
sub_path: []const u8,
options: CreateFileAtomicOptions,
) CreateFileAtomicError!File.Atomic
pub fn createFileAtomic(
dir: Dir,
io: Io,
sub_path: []const u8,
options: CreateFileAtomicOptions,
) CreateFileAtomicError!File.Atomic {
return io.vtable.dirCreateFileAtomic(io.userdata, dir, sub_path, options);
}