Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if folder is empty

if not os.listdir('/home/varun/temp') :
    print("Directory /home/varun/temp is empty")
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #python #check #folder #empty
ADD COMMENT
Topic
Name
4+4 =