revert IterableDir

see https://github.com/ziglang/zig/pull/18076
This commit is contained in:
Pierre Tachoire
2023-12-04 15:30:08 +01:00
parent d73a204d8b
commit 7e7e5518d8

View File

@@ -139,7 +139,7 @@ fn evalJS(env: jsruntime.Env, alloc: std.mem.Allocator, script: []const u8, name
// browse the path to find the tests list.
pub fn find(allocator: std.mem.Allocator, comptime path: []const u8, list: *std.ArrayList([]const u8)) !void {
var dir = try std.fs.cwd().openIterableDir(path, .{ .no_follow = true });
var dir = try std.fs.cwd().openDir(path, .{ .iterate = true, .no_follow = true });
defer dir.close();
var walker = try dir.walk(allocator);