Fields

path: ?[]const u8,

This field is redundant for operations that can act on the open directory handle directly, but it is needed when passing the directory to a child process. null means cwd.

handle: fs.Dir,

Functions

fn closeAndFree(self: *Directory, gpa: Allocator) void

Whether or not the handle should be closed, or the path should be freed is dete…

Whether or not the handle should be closed, or the path should be freed is determined by usage, however this function is provided for convenience if it happens to be what the caller needs.

fn format(self: Directory, comptime fmt_string: []const u8, options: fmt.FormatOptions, writer: anytype) !void

No documentation provided.

fn join(self: Directory, allocator: Allocator, paths: []const []const u8) ![]u8

No documentation provided.

fn joinZ(self: Directory, allocator: Allocator, paths: []const []const u8) ![:0]u8

No documentation provided.