Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if file has content

>>> import os
>>> os.stat("file").st_size == 0
True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #file #content
ADD COMMENT
Topic
Name
1+6 =