fn stat(self: File) StatError!Stat

TODO: integrate with async I/O

Parameters

self: File,