Get your own Python server Result Size: 625 x 565
x
 
#Import os Library
import os
# Open file
fd = os.open("test.txt", os.O_RDONLY)
# Get status of file
print (os.fstat(fd))
# Close file
os.close(fd)
os.stat_result(st_mode=33188, st_ino=264, st_dev=2097252,
st_nlink=1, st_uid=1000, st_gid=1000, st_size=13,
st_atime=1604312209, st_mtime=1604312209,
st_ctime=1604312209)