| author | |
| committer | |
| log | cf9642a62718e1275e7ff2b3aad7c62345cadccd |
| tree | 9844c689c66fdd18a291ad72be55356bfe5eb3cf |
| parent | c6cc82e302b6829b10eaa9b21495bc776e1c73d3 |
1 files changed, 5 insertions(+), 0 deletions(-)
Dir.zig+5| ... | ... | @@ -58,3 +58,8 @@ pub fn makeDir(self: Dir, sub_path: [:0]const u8) !void { |
| 58 | 58 | if (os == .linux) |
| 59 | 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 | } |