| ... | @@ -882,6 +882,14 @@ pub const Dir = struct { | ... | @@ -882,6 +882,14 @@ pub const Dir = struct { |
| 882 | } | 882 | } |
| 883 | } | 883 | } |
| 884 | | 884 | |
| | 885 | pub fn makeDir(self: Dir, sub_path: []const u8) !void { |
| | 886 | try os.mkdirat(self.fd, sub_path, default_new_dir_mode); |
| | 887 | } |
| | 888 | |
| | 889 | pub fn makeDirC(self: Dir, sub_path: [*:0]const u8) !void { |
| | 890 | try os.mkdiratC(self.fd, sub_path, default_new_dir_mode); |
| | 891 | } |
| | 892 | |
| 885 | /// Deprecated; call `openDirList` directly. | 893 | /// Deprecated; call `openDirList` directly. |
| 886 | pub fn openDir(self: Dir, sub_path: []const u8) OpenError!Dir { | 894 | pub fn openDir(self: Dir, sub_path: []const u8) OpenError!Dir { |
| 887 | return self.openDirList(sub_path); | 895 | return self.openDirList(sub_path); |