create path if it does not exist
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Failing after 2m34s

This commit is contained in:
Emil Lerch 2023-08-15 07:38:57 -07:00
parent c3da8c067f
commit bad00517a3
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -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], .{});
}