aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-31 16:35:01 -0800
committerAndrew Kelley <andrew@ziglang.org>2022-01-02 16:58:05 -0800
commitd3f87f8ac01039722197a13a12342fc747a90567 (patch)
tree226dfc7c6e61533b34a083f810b3e1429390e679 /src/codegen/llvm.zig
parentb4d6e85a339e971829404dc1a260bde4062735f8 (diff)
downloadzig-d3f87f8ac01039722197a13a12342fc747a90567.tar.gz
zig-d3f87f8ac01039722197a13a12342fc747a90567.zip
std.fs.rename: fix Windows implementation
The semantics of this function are that it moves both files and directories. Previously we had this `is_dir` boolean field of `std.os.windows.OpenFile` which required the API user to choose: are we opening a file or directory? And the other kind would either cause error.IsDir or error.NotDir. But that is not a limitation of the Windows file system API; it was self-imposed. On Windows, rename is implemented internally with `NtCreateFile` so we need to allow it to open either files or directories. This is now done by `std.os.windows.OpenFile` accepting enum{file_only,dir_only,any} instead of a boolean.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions