# fs.Dir.walk: Do not close the initial dir during/after walking it · gitcafe/zig

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

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

Visibility: public

Requested revision: 2f6dbaa0ea7307dd6806082b07266a43db5da950

Requested commit: 2f6dbaa0ea7307dd6806082b07266a43db5da950

Commit: 2f6dbaa0ea7307dd6806082b07266a43db5da950

Tree: c1e7c13d8d304a65e1b37d9d013ed135a2d77eb4

Author: Ryan Liptak

Committer: Veikka Tuominen

## Message

```
fs.Dir.walk: Do not close the initial dir during/after walking it

Closing the initial directory was unexpected to me, and does not mesh very well with how the rest of the Dir API works.

Fixes #9556

```

## Parents

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

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