Get the status of a file or file descriptor by performing a statx() system call on the given path.
os/statx
statx