Skip to content

Commit

Permalink
Recursive call on error
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed May 1, 2011
1 parent c6c1e44 commit cc94a40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/flow2couchdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ crawler = function(base, completed, data) {
fs.readdir(base, function(err, in_files, dirs, cnt, i) {
if (err) {
console.log('fs.readdir:err:'+err);
setTimeout(function() {
crawler(data, completed, data);
}, 1000)
return;
}
dirs = [];
Expand Down

0 comments on commit cc94a40

Please sign in to comment.