# dirOpenFileWtf16: Disallow opening directories when requesting write permissions · gitcafe/zig

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

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

Visibility: public

Requested revision: bb788cd3925b7fb21e694d3586fb4c57a26005d9

Requested commit: bb788cd3925b7fb21e694d3586fb4c57a26005d9

Commit: bb788cd3925b7fb21e694d3586fb4c57a26005d9

Tree: fbcea9f1c1de10f03e04d5e2a4f6d0a4dc29a3a1

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
dirOpenFileWtf16: Disallow opening directories when requesting write permissions

This matches the behavior of POSIX

```

## Parents

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

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