andrewandoru home

labs: empty! . .

I ran into a situation where I wanted to remove a lot of empty folders from a directory and did some digging and came up with a new stupid tool to make that easy. empty! just asks for a folder (you can run the app and choose one, or drag and drop one) and it will look for empty folders inside that directory and delete them. As folders that contain empty folders become empty, it will also delete them, but it won’t delete anything that contains proper files or folders with files in them.

You want to be careful with this if you are deleting stuff from a server as there is no confirmation to delete and no trash to restore from, so it would be wise to copy the directory to your computer first, run empty and move it back. It is a bit nerve racking to listen to it delete hundreds of folders but I have tested this on pretty heavy directories with multiple files and it works great, but… this tool is made available as is, I cannot guarantee it won’t run into a situation where important files may be deleted, make sure to back stuff up before using it on a heavy directory.

One cool thing I worked into this is the ability to select your folder in Finder, then simply run the app from Spotlight or Finder, and it will default to the last path you selected in Finder which is a great time saver. I will start integrating this into all my other tools where it makes sense as it is incredibly simple.

Download: empty!_v1.0 (300KB .zip)

[2010.05.12: v1.0] – released!

Enjoy! If there are any issues, concerns, or requests please contact: This app is free, no donations allowed on this one. . .


andrew hake | reel | twitter-andrewhake
one man thinktank