From bad00517a3ecbf1f32a5b5d3254afd5f73794ff3 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 15 Aug 2023 07:38:57 -0700 Subject: [PATCH] create path if it does not exist --- codegen/src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/main.zig b/codegen/src/main.zig index 255b4cf..583895e 100644 --- a/codegen/src/main.zig +++ b/codegen/src/main.zig @@ -28,7 +28,7 @@ pub fn main() anyerror!void { std.process.exit(0); } if (std.mem.eql(u8, "--output", arg)) - output_dir = try output_dir.openDir(args[i + 1], .{}); + output_dir = try output_dir.makeOpenPath(args[i + 1], .{}); if (std.mem.eql(u8, "--models", arg)) models_dir = try std.fs.cwd().openIterableDir(args[i + 1], .{}); }