# fs.Dir.realpathW: Reduce the number of OpenFile calls for directories · gitcafe/zig

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

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

Visibility: public

Requested revision: a190582b26a82f96da7488eff37e9676cdb937bc

Requested commit: a190582b26a82f96da7488eff37e9676cdb937bc

Commit: a190582b26a82f96da7488eff37e9676cdb937bc

Tree: 50931e3921a66fa1bc9eb8f55029be7d77b558ba

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
fs.Dir.realpathW: Reduce the number of OpenFile calls for directories

`.filter = .any` can be used here to remove an unnecessary extra OpenFile call when getting the path of a directory

```

## Parents

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

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