commit 4e2a960b523070c7f8fddf0ea9b6e2a94e31dafe (tree)
parent db023b98a4deef527d4c70d146009f754e9b168d
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 9 Nov 2022 14:44:34 -0700
std.fs: fix openDirAbsolute
These functions had a compile error since the introduction of
IterableDir.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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