Find Empty Files and Directories from Command Line
If you are anything like me, you like to keep your projects as tight as possible. By "tight" I mean no lingering, useless files or directories, because bloat is an incredible annoyance and distraction. And we don't want distractions, do we?
There's a really easy way to find empty files and directories from the command line:
find /path/to/source/directory -empty
The result will be a list of empty files or directories which you can gloriously remove from your project and relax knowing you're running an incredibly tight ship.
I remember the early days of JavaScript where you needed a simple function for just about everything because the browser vendors implemented features differently, and not just edge features, basic features, like addEventListener
and attachEvent
. Times have changed but there are still a few functions each developer should...
Remember the good old days of Windows applications forcing you to scroll down to the bottom of the "terms and conditions" pane, theoretically in an effort ensure that you actually read them? You're saying "No David, don't do it." Too late -- I've done...
A few of my customer have asked for me to create a subtle but dynamic (...I know...) way for them to advertise different specials on their website. Not something that would display on every page, but periodically or only the homepage. Using a trick...
Is this the Mac version of the command? The windows version seems to be in a different order. Plus, I can’t seem to find a setting for the empty folders on Windows. If know, could you share? Thanks.
This command results in
f:\>find /path/to/source/directory -empty
FIND: Invalid switch’ using the command line. Does anyone have a better way to find empty folders using CMD line or Powershell?