# Split \`std.fs.Dir.openDir\` into \`openDirList\` and \`openDirTraverse\` to clarify what directories can be iterated\. Closes ziglang/zig\#3741\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 17bc1f62a51ad5fc44dc97acf6ddb33e6d00b0c4

Requested commit: 17bc1f62a51ad5fc44dc97acf6ddb33e6d00b0c4

Commit: 17bc1f62a51ad5fc44dc97acf6ddb33e6d00b0c4

Tree: 23da0acda6763db992cb729110761c756d5fa0f2

Author: Jonathan S

Committer: Andrew Kelley

## Message

```
Split `std.fs.Dir.openDir` into `openDirList` and `openDirTraverse` to clarify what directories can be iterated. Closes ziglang/zig#3741.

The Windows-inspired nomenclature of "List" and "Traverse" was chosen over POSIX-style "Read" and "Path" (from `O_PATH`) for clarity. Using "Path" makes it look like the function is manipulating strings, and the generic "Read" ending isn't useful when there is no generic read method. Even in implementation details, `read` is never used.

Actual exploitation of the difference between the two functions will come in a later commit.

```

## Parents

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

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