Closed silkentrance closed 5 years ago
see also #194
Thank you for the work @silkentrance. I don't like this change, we should update the README file to set the expectations right, but definitely not alter the listeners.
I would like to get rid of this feature soon so changing the behavior to remove the files per default is not a great way to get there.
@raszi Then I think that someone will have to work on the readme and add the missing information.
Not to mention that the information in the readme was already in there.
However, this requires a lot more effort - checking on whether a directory, and by that tree of that, is actually empty...
we might get around this by just calling upon rmdirSync and capturing the resulting exception, if the specific directory was not empty. which should be the standard behaviour, I believe.
make graceful cleanup the default and let user override that by calling setGracefulCleanup(false)