|
if (sub_path_w[0] == '.' and sub_path_w[1] == '.' and sub_path_w[2] == 0) { |
|
// If you're looking to contribute to zig and fix this, see here for an example of how to |
|
// implement this: https://git.midipix.org/ntapi/tree/src/fs/ntapi_tt_open_physical_parent_directory.c |
|
@panic("TODO opening '..' with a relative directory handle is not yet implemented on Windows"); |
|
} |
example zig code:
const std = @import("std");
pub fn main() anyerror!void {
var it = try std.fs.walkPath(std.heap.direct_allocator, "..");
while (try it.next()) |entry| {
std.debug.warn("{}\n", entry.path);
}
}
> zig.exe build-exe test.zig
> test.exe
TODO opening '..' with a relative directory handle is not yet implemented on Windows
zig/lib/std/fs.zig
Lines 768 to 772 in e839250
example zig code: