Main folder getting deleted

So currently I have a rule that will look through the subfolders and find if there are any mp3 files, if not it will delete the folder. (I am moving these mp3's to a different folder to get sorted)
The hierarchy is this:
The problem is when it is the last album folder and it gets deleted, it also deletes the main folder which I do not want it to do. How I can stop the rule from deleting the main folder? It is getting deleted because it has nothing else in the folder.
The hierarchy is this:
- Code: Select all
Main Folder
-album
-mp3
-album2
The problem is when it is the last album folder and it gets deleted, it also deletes the main folder which I do not want it to do. How I can stop the rule from deleting the main folder? It is getting deleted because it has nothing else in the folder.