| ... | @@ -58,3 +58,8 @@ pub fn makeDir(self: Dir, sub_path: [:0]const u8) !void { | ... | @@ -58,3 +58,8 @@ pub fn makeDir(self: Dir, sub_path: [:0]const u8) !void { |
| 58 | if (os == .linux) | 58 | if (os == .linux) |
| 59 | try sys_linux.mkdirat(@intFromEnum(self.fd), sub_path, 0o755); | 59 | try sys_linux.mkdirat(@intFromEnum(self.fd), sub_path, 0o755); |
| 60 | } | 60 | } |
| | 61 | |
| | 62 | pub fn statFile(self: Dir, sub_path: [:0]const u8) !File.Stat { |
| | 63 | if (os == .linux) |
| | 64 | return .fromPosix(try sys_linux.fstatat(@intFromEnum(self.fd), sub_path, 0)); |
| | 65 | } |