From 666584067a97da6d39867ff0c57fcd3be2d50e96 Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Sun, 3 Jan 2021 04:19:24 -0700 Subject: implement nt path conversion for windows --- lib/std/fs.zig | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/std/fs.zig') diff --git a/lib/std/fs.zig b/lib/std/fs.zig index 2e3d4fca05..a280f6ccaa 100644 --- a/lib/std/fs.zig +++ b/lib/std/fs.zig @@ -1365,15 +1365,6 @@ pub const Dir = struct { .SecurityDescriptor = null, .SecurityQualityOfService = null, }; - if (sub_path_w[0] == '.' and sub_path_w[1] == 0) { - // Windows does not recognize this, but it does work with empty string. - nt_name.Length = 0; - } - 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"); - } const open_reparse_point: w.DWORD = if (no_follow) w.FILE_OPEN_REPARSE_POINT else 0x0; var io: w.IO_STATUS_BLOCK = undefined; const rc = w.ntdll.NtCreateFile( -- cgit v1.2.3