pvorb/node-dive — pull request #5 by jamuhl (2012-01-11 10:26:00+00:00)
Title: failing call to complete callback if error occurs

if an error occurs while reading file.stat (line 48) the todo counter won't be decreased which will cause the complete callback will never be called.

i changed (line 48ff):

```javascript
fs.stat(path, function(err, stat) {
if (err) return action(err);
```

to:

```javascript
fs.stat(path, function(err, stat) {
if (err) {
todo--;
return action(err);
}
```

hope you will merge this and update the npm package.