os.stat_result¶
-
class
os.stat_result¶ stat_result: Result from stat or lstat.
- This object may be accessed either as a tuple of
- (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)
or via the attributes st_mode, st_ino, st_dev, st_nlink, st_uid, and so on.
Posix/windows: If your platform supports st_blksize, st_blocks, st_rdev, or st_flags, they are available as attributes only.
See os.stat for more information.
Attributes¶
n_fields |
|
n_sequence_fields |
|
n_unnamed_fields |
|
st_atime |
time of last access |
st_blksize |
blocksize for filesystem I/O |
st_blocks |
number of blocks allocated |
st_ctime |
time of last change |
st_dev |
device |
st_gid |
group ID of owner |
st_ino |
inode |
st_mode |
protection bits |
st_mtime |
time of last modification |
st_nlink |
number of hard links |
st_rdev |
device type (if inode device) |
st_size |
total size, in bytes |
st_uid |
user ID of owner |