# Move Windows rename implementation from std.posix to windows.RenameFile · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/bf25816067844efbdb7fe26e8ca7a96341fb919a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: bf25816067844efbdb7fe26e8ca7a96341fb919a

Requested commit: bf25816067844efbdb7fe26e8ca7a96341fb919a

Commit: bf25816067844efbdb7fe26e8ca7a96341fb919a

Tree: 19e2bd872fde1c705f413352d4f78a1e229388a7

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Move Windows rename implementation from std.posix to windows.RenameFile

This also unifies the rename implementations, since previously `posix.renameW` used `MoveFileEx` while `posix.renameatW` used `NtOpenFile`/`NtSetInformationFile`. This, in turn, allows the `MoveFileEx` bindings to be deleted as `posix.renameW` was the only usage.

```

## Parents

- [17ecc77fc46727f3979abe904ec00b79f036270e](https://git.cafe/gitcafe/zig/commit/17ecc77fc46727f3979abe904ec00b79f036270e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/bf25816067844efbdb7fe26e8ca7a96341fb919a?format=markdown)
