How to check whether a file is empty or not?
import os
os.path.getsize(fullpathhere) > 0
>>> import os
>>> os.stat("file").st_size == 0
True
import os
os.path.getsize(fullpathhere) > 0
>>> import os
>>> os.stat("file").st_size == 0
True