diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-22 17:58:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-22 17:58:59 -0400 |
| commit | 7cd9b30e0aee01eec148b867e2f949e7449e258d (patch) | |
| tree | f3a9612c95ddac9bb1a6e5b743d91d2473dadd84 /lib/std/fs.zig | |
| parent | 79dee75b1ccd8f3f595aad0d4150851cff58f691 (diff) | |
| parent | b0116afd8adbc73d820fee418ec74104f43bff6e (diff) | |
| download | zig-7cd9b30e0aee01eec148b867e2f949e7449e258d.tar.gz zig-7cd9b30e0aee01eec148b867e2f949e7449e258d.zip | |
Merge pull request #7664 from marler8997/fixWindowsPaths
implement nt path conversion for windows
Diffstat (limited to 'lib/std/fs.zig')
| -rw-r--r-- | lib/std/fs.zig | 9 |
1 files changed, 0 insertions, 9 deletions
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( |
