ryanmcgrath / wrench-js

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

Update lib/wrench.js #12

Closed fishmongr closed 12 years ago

fishmongr commented 12 years ago

For rmdirSyncRecurisve I believe: var currFile = fs.statSync(path + "/" + files[i]); should be var currFile = fs.lstatSync(path + "/" + files[i]);

so any symbolic links will be evaluated as the link instead of the file it resolves to. Currently a symbolic linked folder being deleted will receive an ENOTDIR, not a directory.

ryanmcgrath commented 12 years ago

Done. Many thanks, will push a point release!