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.
![Responsive and Infinitely Scalable JS Animations]()
Back in late 2012 it was not easy to find open source projects using requestAnimationFrame()
- this is the hook that allows Javascript code to synchronize with a web browser's native paint loop. Animations using this method can run at 60 fps and deliver fantastic...
![From Webcam to Animated GIF: the Secret Behind chat.meatspac.es!]()
My team mate Edna Piranha is not only an awesome hacker; she's also a fantastic philosopher! Communication and online interactions is a subject that has kept her mind busy for a long time, and it has also resulted in a bunch of interesting experimental projects...
![Using TogetherJS]()
![Using MooTools For Opacity]()
Although it's possible to achieve opacity using CSS, the hacks involved aren't pretty. If you're using the MooTools JavaScript library, opacity is as easy as using an element's "set" method. The following MooTools snippet takes every image with the "opacity" class and sets...
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?