authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-09 14:44:34-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-06 12:15:04-07:00
log4e2a960b523070c7f8fddf0ea9b6e2a94e31dafe
tree1fd0d64388b1e15c1a768fe67bbcda50838026c8
parentdb023b98a4deef527d4c70d146009f754e9b168d

std.fs: fix openDirAbsolute

These functions had a compile error since the introduction of IterableDir.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/fs.zig+2-2
......@@ -2685,12 +2685,12 @@ pub fn openDirAbsolute(absolute_path: []const u8, flags: Dir.OpenDirOptions) Fil
26852685/// Same as `openDirAbsolute` but the path parameter is null-terminated.
26862686pub fn openDirAbsoluteZ(absolute_path_c: [*:0]const u8, flags: Dir.OpenDirOptions) File.OpenError!Dir {
26872687 assert(path.isAbsoluteZ(absolute_path_c));
2688 return cwd().openDirZ(absolute_path_c, flags);
2688 return cwd().openDirZ(absolute_path_c, flags, false);
26892689}
26902690/// Same as `openDirAbsolute` but the path parameter is null-terminated.
26912691pub fn openDirAbsoluteW(absolute_path_c: [*:0]const u16, flags: Dir.OpenDirOptions) File.OpenError!Dir {
26922692 assert(path.isAbsoluteWindowsW(absolute_path_c));
2693 return cwd().openDirW(absolute_path_c, flags);
2693 return cwd().openDirW(absolute_path_c, flags, false);
26942694}
26952695
26962696/// Opens a directory at the given path. The directory is a system resource that remains