<s>[INST] How to check file size in python? I am writing a Python script in Windows. I want to do something based on the file size. For example, if the size is greater than 0, I will send an email to somebody, otherwise continue to other things. 
How do I check the file size?
 [/INST] Like this (credit http://www.daniweb.com/forums/thread78629.html):
>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")
>>> b
2071611L

 </s>