pub fn statFile(dir: Dir, io: Io, sub_path: []const u8, options: StatFileOptions) StatFileError!Stat dir: Dirio: Iosub_path: []const u8options: StatFileOptions902
903
904pub fn statFile(dir: Dir, io: Io, sub_path: []const u8, options: StatFileOptions) StatFileError!Stat {
return io.vtable.dirStatFile(io.userdata, dir, sub_path, options);
}
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_pathmay be absolute, in which caseselfis ignored.sub_pathshould be encoded as WTF-8.sub_pathshould be encoded as valid UTF-8.sub_pathis an opaque sequence of bytes with no particular encoding.