ryanmcgrath / wrench-js

Recursive file operations in Node.js
MIT License
435 stars 71 forks source link

rmdirSyncRecursive: Keep folder, but remove subtree? #94

Open IngwiePhoenix opened 9 years ago

IngwiePhoenix commented 9 years ago

I am needing to clear the contents of a folder before my app launches. As the permissions are normally -rw-rw-rw i can't chmod it, it seems...but I can remove it. But the documentation reads, that it will also remove the directory whose sub-tree was removed. How can I ensure that this won't happen?

Kind regards, Ingwie