std.fs
fstat(fd) -> info, err
fd
info
err
Get the status of an open file descriptor
Returns the table stat gives, for the file fd holds open. Wraps fstat(2). A check by path cannot vouch for the file a later open returns; a check of the open fd can.
stat
fstat(2)