authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-24 22:18:15 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-24 22:18:15 -07:00
logbd1528faf2504118937f962da93c4007a229e91c
tree2f65b09f320b1a3826a435687b1bc0f30ffdaf6a
parenta0eb03f4335e6ab0053312586382f2afd71982c4

add Dir.to_std


1 files changed, 5 insertions(+), 0 deletions(-)

Dir.zig+5
......@@ -28,3 +28,8 @@ pub fn openDir(self: Dir, sub_path: [:0]const u8, flags: OpenDirFlags) !Dir {
2828pub const OpenDirFlags = packed struct {
2929 //
3030};
31
32/// temporary method for interacting with other std apis we don't have our own version of
33pub fn to_std(self: Dir) std.fs.Dir {
34 return .{ .fd = @intFromEnum(self.fd) };
35}