Update lib/wrench.js #12

Merged
fishmongr merged 1 commit from patch-1 into master 2012-01-16 13:46:35 -08:00
fishmongr commented 2012-01-16 13:41:02 -08:00 (Migrated from github.com)

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.

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 2012-01-16 13:46:46 -08:00 (Migrated from github.com)

Done. Many thanks, will push a point release!

Done. Many thanks, will push a point release!
This repository is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/wrench-js#12
No description provided.