File Handling

Get File Size

Path

import os os.path.getsize(‘C:\Python27\Lib\genericpath.py’)

Behind the scenes, this implements:

os.stat(‘C:\Python27\Lib\genericpath.py’).st_size

Stat