ryanmcgrath / wrench-js

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

Fix inflateSymlinks flag errors for absolute symlinks #79

Closed xzyfer closed 10 years ago

xzyfer commented 10 years ago

The inflateSymlinks: true for copyDirSyncRecursive assumes symlinks will have relatives paths. A symlink with an absolute path throws an error since the path cannot be correctly resolved.

This pull request fixes those errors and adds tests.

ryanmcgrath commented 10 years ago

Seems good, merged. Thanks for the catch/pull request!