# std.fs.Dir.statFile rework · gitcafe/zig

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

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

Visibility: public

Requested revision: a62c8d36d530dc78f88dc0f41ce3f244c3c273bd

Requested commit: a62c8d36d530dc78f88dc0f41ce3f244c3c273bd

Commit: a62c8d36d530dc78f88dc0f41ce3f244c3c273bd

Tree: fd92869eefe7bd99af8cf3fbcad1533bb5797ec8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.Dir.statFile rework

 * revert changes to Module because the error set is consistent across
   operating systems.
 * remove duplicated Stat.fromSystem code and use a less redundant name.
 * make fs.Dir.statFile follow symlinks, and avoid pointless control
   flow through the posix layer.

```

## Parents

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

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