Answers for "check if directory exists and it is empty python"

4

python check if folder is empty

if not os.listdir('/home/varun/temp') :
    print("Directory /home/varun/temp is empty")
Posted by: Guest on February-14-2020

Code answers related to "check if directory exists and it is empty python"

Python Answers by Framework

Browse Popular Code Answers by Language