diff --git a/Dir.zig b/Dir.zig index 264eb05ff1fa46d6a69acb6bfdc33fa71294bc90..ae3885325f38bf5943dc9d068577e34d8fbe4d2d 100644 --- a/Dir.zig +++ b/Dir.zig @@ -28,3 +28,8 @@ pub fn openDir(self: Dir, sub_path: [:0]const u8, flags: OpenDirFlags) !Dir { pub const OpenDirFlags = packed struct { // }; + +/// temporary method for interacting with other std apis we don't have our own version of +pub fn to_std(self: Dir) std.fs.Dir { + return .{ .fd = @intFromEnum(self.fd) }; +}