fn writeFile(self: Dir, sub_path: []const u8, data: []const u8) !void

Writes content to the file system, creating a new file if it does not exist, truncating if it already exists.

Parameters

self: Dir,
sub_path: []const u8,
data: []const u8,