python check if file has content

23

python check if file has content -

>>> import os
>>> os.stat("file").st_size == 0
True

Comments

Submit
0 Comments