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.
a62c8d36d5Andrew Kelley committed on 12/14/2022, 9:26:02 PMparentf65cdef
3 files changedLine totals unavailable