Remove all empty directories from the provided folder. Its all sync as its a lot easier to do it this way :) It will return array of removed directories.
It will not remove the passed directory itself.
Install
npm
npm install --save remove-empty-directories
Sample usage
var removeDirectories = ;var removed = ;
CLI
You can also use it as a CLI app by installing it globally:
npm install --global remove-empty-directories
$ remove-directories --help Usage: $ remove-directories --public $ remove-directories --public/assets
Options
path
Type: String
Default: ''
Path where to look for empty directories
License
MIT © Daniel Husar