ryanmcgrath / wrench-js

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

mkdirSyncRecursive, preserve existing nested directories on multiple operations #85

Closed lastboy closed 10 years ago

lastboy commented 10 years ago

In case the directory already exists with sub-folders it will be deleted.

example:

mkdirSyncRecursive("./root-folder/folderA") will result: -root-folder -folderA

mkdirSyncRecursive("./root-folder/folderB") over the previous operation will result: -root-folder -folderB

folderA will be removed, can you add an option to preserve the existing folders?

lastboy commented 10 years ago

Not a bug! Sorry, I found out that something went wrong on my specific environment.