#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)