I\'ve searched everywhere for this answer but can\'t find it.
I\'m trying to come up with a script that will search for a particular subfolder then check if it conta
Check if the folder contains files:
import os import shutil if len(os.listdir(folder_path)) == 0: # Check is empty.. shutil.rmtree(folder_path) # Delete..