fn statFile(self: Dir, sub_path: []const u8) StatFileError!Stat

Returns metadata for a file inside the directory.

On Windows, this requires three syscalls. On other operating systems, it only takes one.

Symlinks are followed.

sub_path may be absolute, in which case self is ignored.

Parameters

self: Dir,
sub_path: []const u8,