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...@@ -2685,12 +2685,12 @@ pub fn openDirAbsolute(absolute_path: []const u8, flags: Dir.OpenDirOptions) Fil
2685/// Same as `openDirAbsolute` but the path parameter is null-terminated.2685/// Same as `openDirAbsolute` but the path parameter is null-terminated.
2686pub fn openDirAbsoluteZ(absolute_path_c: [*:0]const u8, flags: Dir.OpenDirOptions) File.OpenError!Dir {2686pub fn openDirAbsoluteZ(absolute_path_c: [*:0]const u8, flags: Dir.OpenDirOptions) File.OpenError!Dir {
2687 assert(path.isAbsoluteZ(absolute_path_c));2687 assert(path.isAbsoluteZ(absolute_path_c));
2688 return cwd().openDirZ(absolute_path_c, flags);2688 return cwd().openDirZ(absolute_path_c, flags, false);
2689}2689}
2690/// Same as `openDirAbsolute` but the path parameter is null-terminated.2690/// Same as `openDirAbsolute` but the path parameter is null-terminated.
2691pub fn openDirAbsoluteW(absolute_path_c: [*:0]const u16, flags: Dir.OpenDirOptions) File.OpenError!Dir {2691pub fn openDirAbsoluteW(absolute_path_c: [*:0]const u16, flags: Dir.OpenDirOptions) File.OpenError!Dir {
2692 assert(path.isAbsoluteWindowsW(absolute_path_c));2692 assert(path.isAbsoluteWindowsW(absolute_path_c));
2693 return cwd().openDirW(absolute_path_c, flags);2693 return cwd().openDirW(absolute_path_c, flags, false);
2694}2694}
26952695
2696/// Opens a directory at the given path. The directory is a system resource that remains2696/// Opens a directory at the given path. The directory is a system resource that remains