Add missing iteration permissions
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Has been cancelled
Some checks failed
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Has been cancelled
This commit is contained in:
parent
b71be1f03e
commit
d84824b84e
|
@ -111,7 +111,9 @@ pub fn fetchAndUnpack(
|
||||||
const path = try global_cache_directory.join(gpa, &.{tmp_dir_sub_path});
|
const path = try global_cache_directory.join(gpa, &.{tmp_dir_sub_path});
|
||||||
errdefer gpa.free(path);
|
errdefer gpa.free(path);
|
||||||
|
|
||||||
const iterable_dir = try global_cache_directory.handle.makeOpenPath(tmp_dir_sub_path, .{});
|
const iterable_dir = try global_cache_directory.handle.makeOpenPath(tmp_dir_sub_path, .{
|
||||||
|
.iterate = true,
|
||||||
|
});
|
||||||
errdefer iterable_dir.close();
|
errdefer iterable_dir.close();
|
||||||
|
|
||||||
break :d .{
|
break :d .{
|
||||||
|
|
|
@ -29,9 +29,13 @@ pub fn main() anyerror!void {
|
||||||
std.process.exit(0);
|
std.process.exit(0);
|
||||||
}
|
}
|
||||||
if (std.mem.eql(u8, "--output", arg))
|
if (std.mem.eql(u8, "--output", arg))
|
||||||
output_dir = try output_dir.makeOpenPath(args[i + 1], .{});
|
output_dir = try output_dir.makeOpenPath(args[i + 1], .{
|
||||||
|
.iterate = true,
|
||||||
|
});
|
||||||
if (std.mem.eql(u8, "--models", arg))
|
if (std.mem.eql(u8, "--models", arg))
|
||||||
models_dir = try std.fs.cwd().openDir(args[i + 1], .{ .iterate = true });
|
models_dir = try std.fs.cwd().openDir(args[i + 1], .{
|
||||||
|
.iterate = true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// TODO: Seems like we should remove this in favor of a package
|
// TODO: Seems like we should remove this in favor of a package
|
||||||
try output_dir.writeFile("json.zig", json_zig);
|
try output_dir.writeFile("json.zig", json_zig);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user