Closed themightychris closed 12 years ago
Mmmm, simplified this example, as... well, it was needlessly branching. If people want to handle that kind of scenario, it's trivial and they will.
It was definitely helpful though for the example to show that curFiles would be null when you reached the end of the listings.
I really like dive's syntax for this operation: https://github.com/pvorb/node-dive
It takes a second callback to be executed when the recursion has completed
should be if(curFiles) instead of if(files), no?