Os Fstat
# Python2.x Python os.fstat() Method
[ Python OS File/Directory Methods](#)
* * *
### Overview
The os.fstat() method is used to return the status of the file descriptor fd, similar to stat().
Available on Unix and Windows.
The structure returned by the fstat method:
* **st_dev:** Device information
* **st_ino:** The i-node value of the file
* **st_mode:** File information mask, contains the file's permission information, and the file's type information (whether it is a regular file, a pipe file, or another file type)
* **st_nlink:** Number of hard links
* **st_uid:** User ID
* **st_gid:** User group ID
* **st_rdev:** Device ID (if specified file)
* **st_size:** File size, in bytes
YouTip