ryanmcgrath / wrench-js

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

Recursively copying a directory into itself results in endless operation #83

Open silverwind opened 10 years ago

silverwind commented 10 years ago

Is this expected behaviour?

When copying /dir to the destination /dir/dir, I get a endless stream of sub-folders created, like /dir/dir/dir/dir, and the operation runs until the disk is full. It seems both sync and async versions are showing this behaviour.