empty folders
Trying to clean up my MBP, anyone know of an easy way to locate empty folders so I can trash them?
MacBook Pro 13", macOS 10.13
Trying to clean up my MBP, anyone know of an easy way to locate empty folders so I can trash them?
MacBook Pro 13", macOS 10.13
Hi Mike...
Empty Folders
Mac
It's actually quite easy to find empty folders on your Mac. All you have to do is open Finder, then press Command + F to open Find. Under Kind, select Folder. Add another search criterion by pressing the + and choose Number of items, then set it to less than one.
Hi Mike...
Empty Folders
Mac
It's actually quite easy to find empty folders on your Mac. All you have to do is open Finder, then press Command + F to open Find. Under Kind, select Folder. Add another search criterion by pressing the + and choose Number of items, then set it to less than one.
Some scary but efficient Terminal Commands...
find . -type d -empty
I'd have a Backup before trying this one!
find . -type d -empty -delete
Here...
bd1$ find ~/Music/iTunes -type d -empty
/Users/bd1/Music/iTunes/Album Artwork/Cloud
/Users/bd1/Music/iTunes/Album Artwork/Custom
/Users/bd1/Music/iTunes/Album Artwork/Download
/Users/bd1/Music/iTunes/Album Artwork/Store
/Users/bd1/Music/iTunes/iTunes Media/Downloads
Sorry, bd1$ was like mike$ in your reply...
find ~/Music/iTunes -type d -empty
Sigh.
MacBook-Pro-2:~ mike$ bd1$ find ~/Music/iTunes -type d -empty
-bash: bd1$: command not found
Turns out, for some reason, it doesn't work 100%. I did the search and it found 3 folders, thought that odd, but I delete them. I then went into the iTunes folder and looked at a couple folders, there was one called Unknown Artists, since I just spent time cleaning up my iTunes library I found it odd that that folder didn't show up, so I looked inside it. I found two folders, then I looked inside them, both were empty. I'm guessing the search only goes one-level deep.
Here's the search showing there are no folders that are empty:
Here's the search showing that the folders under Unknown Artist are empty:
Tried that, but limiting it to the iTunes folder:
mike$ find /Users/mike/Music/iTunes -type d -empty
It only went into the first sub-folder (/Users/mike/Music/iTunes/Album Artwork/
Did not go down into other folders in the iTunes folder, either that or there are hidden files that don't display
Thanks. I didn't see Number of Items, I saw size and tried searching for zero.
Great news, good work! :)
empty folders