# std.fs.Dir.makeOpenPath: optimize when path already exists · gitcafe/zig

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

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

Visibility: public

Requested revision: f6a6cdbba372414e441bbcea8c680e71d12c4a9a

Requested commit: f6a6cdbba372414e441bbcea8c680e71d12c4a9a

Commit: f6a6cdbba372414e441bbcea8c680e71d12c4a9a

Tree: 9c98fa685051d4cd8ede559695a20d5ac21fbb95

Author: Qusai Hroub

Committer: Andrew Kelley

## Message

```
std.fs.Dir.makeOpenPath: optimize when path already exists

Uses a single NtCreateFile syscall on windows.

Closes #12474. Thanks to @joedavis and @matu3ba.

```

## Parents

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

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