delete-empty
delete-empty copied to clipboard
Recursively delete all empty folders in a directory and child directories.
Hi, I found that six transitive dependencies are not used in your package. So I created a package-lock.json file that excludes the useless dependencies. Would you consider removing useless dependencies...
I upgraded from 2.0.0 and has stopped working! Looking for solutions, I find another issue about the same problem where the author (@jonschlinkert) said that ["[...] this was refactored"](https://github.com/jonschlinkert/delete-empty/issues/14#issuecomment-841201114) and...
https://github.com/jonschlinkert/delete-empty/blob/6ae34547663e6845c3c98b184c606fa90ef79c0a/index.js#L60-L61 If `cb()` throws an error, it will be called again within the error object.
https://github.com/jonschlinkert/delete-empty/blob/6ae34547663e6845c3c98b184c606fa90ef79c0a/index.js#L50 This error should be passed to the callback.