From 4e2a960b523070c7f8fddf0ea9b6e2a94e31dafe Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 9 Nov 2022 14:44:34 -0700 Subject: [PATCH] std.fs: fix openDirAbsolute These functions had a compile error since the introduction of IterableDir. --- lib/std/fs.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/fs.zig b/lib/std/fs.zig index 8ae21259ae..12ee39a7bf 100644 --- a/lib/std/fs.zig +++ b/lib/std/fs.zig @@ -2685,12 +2685,12 @@ pub fn openDirAbsolute(absolute_path: []const u8, flags: Dir.OpenDirOptions) Fil /// Same as `openDirAbsolute` but the path parameter is null-terminated. pub fn openDirAbsoluteZ(absolute_path_c: [*:0]const u8, flags: Dir.OpenDirOptions) File.OpenError!Dir { assert(path.isAbsoluteZ(absolute_path_c)); - return cwd().openDirZ(absolute_path_c, flags); + return cwd().openDirZ(absolute_path_c, flags, false); } /// Same as `openDirAbsolute` but the path parameter is null-terminated. pub fn openDirAbsoluteW(absolute_path_c: [*:0]const u16, flags: Dir.OpenDirOptions) File.OpenError!Dir { assert(path.isAbsoluteWindowsW(absolute_path_c)); - return cwd().openDirW(absolute_path_c, flags); + return cwd().openDirW(absolute_path_c, flags, false); } /// Opens a directory at the given path. The directory is a system resource that remains