mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 09:03:12 +00:00
d3f87f8ac0
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. |
||
---|---|---|
.. | ||
linux | ||
plan9 | ||
uefi | ||
windows | ||
linux.zig | ||
plan9.zig | ||
test.zig | ||
uefi.zig | ||
wasi.zig | ||
windows.zig |