I want to traverse all sub-folders of a particular folder and check whether they have a special file in it otherwise delete the sub-folder.
Take this example (file.txt being the special file here):
- folder_all
- folder1
- file.txt
- folder2
- file.txt
- folder3
- empty
- folder1
Because "folder3" doesn't have the file, I'd like to delete it.
And this is what I want to do. Any ideas?
Thank you very much!