Answers for "how to check if a file is empty using python"

0

how to check if a file is empty using python

>>> import os
>>> os.stat("file").st_size == 0
True
Posted by: Guest on June-21-2021

Code answers related to "how to check if a file is empty using python"

Python Answers by Framework

Browse Popular Code Answers by Language