Empty folders left behind after organizing, how to delete?
Before I organized my music with Songbird my albums were in separate folders, now these empty folders (empty with mp3:s that is, some have cover art and other stuff left) are littering my mp3-folder. How do I delete them? Is there any way to sort by smallest folders and just delete all the small ones (i.e. the ones that does not contain mp3s)
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hey notwist,
A really good app for Windows (that i use every once and a while to clean up my folders) is Remove Empty Directories.. You can set specific file types to ignore that mark the folder as empty so it can still delete it.. very useful!
If your on a Linux distro, you can run this command:
find /home/music -name *.jpg -exec rm -f {} \;
to delete all jpg image files in a folder, then something like:
find /home/music -depth -empty -type d -exec rmdir {} \;
OR
find /home/music -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty --parents
to delete the empty folders...
The company and 3 other people say
this answers the question
-
Remove Empty Directories seems like a really neat program, thank you! -
For future reference, here's my blocklist of files to ignore when removing non-empty directories and classify them as empty anyway:
/*.tmp$/
desktop.ini
Thumbs.db
*.m3u
*.log
*.LOG
*.sfv
*.nfo
*.jpg
*.JPG
*.png
*.gif
*.jpeg
*.cue
*.CUE
*.TXT
*.txt
*.DAT
*.dat
*.directory
*.mxm
*.bmp
*.lnk
*.pls
*.pun
*.pdf
Loading Profile...





CHAMP