# std.fs: Fix \`WalkerEntry.dir\` not always being the containing dir · gitcafe/zig

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

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

Visibility: public

Requested revision: 764cf4e53ffc29bbd39c636020019ae419135d82

Requested commit: 764cf4e53ffc29bbd39c636020019ae419135d82

Commit: 764cf4e53ffc29bbd39c636020019ae419135d82

Tree: 694f59466e8c09fde25f31a510c449914f9f5b47

Author: Ryan Liptak

Committer: Veikka Tuominen

## Message

```
std.fs: Fix `WalkerEntry.dir` not always being the containing dir

Before this commit, the modified test would fail with `FileNotFound` because the `entry.dir` would be for the entry itself rather than the containing dir of the entry. That is, if you were walking a tree of `a/b`, then (previously) the entry for `b` would incorrectly have an `entry.dir` for `b` rather than `a`.

```

## Parents

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

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