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
'files' already tells you whats in the directory. Just check it:
for dirpath, dirnames, files in os.walk('.'): if files: print(dirpath, 'has files') if not files: print(dirpath, 'is empty')