Comparing version
@@ -12,3 +12,3 @@ | ||
attemptTimeout: 3000, | ||
matchRegExp: /\.(log)$/, | ||
// matchRegExp: /\.(log)$/, | ||
// matchRegExp: /\.(json)|(md)$/, | ||
@@ -105,3 +105,2 @@ }; | ||
console.log('%s streamed', formatInt(fw.streamed)); | ||
console.log('%s streamErrors', formatInt(fw.streamErrors)); | ||
console.log('%s detectedMaxOpen', formatInt(fw.detectedMaxOpen)); | ||
@@ -117,3 +116,2 @@ console.log('%s attempts', formatInt(fw.attempts)); | ||
assert.ok(fw.queue.length === 0); | ||
assert.strictEqual(fw.streamed + fw.streamErrors, fw.files); | ||
@@ -120,0 +118,0 @@ }); |
@@ -87,3 +87,3 @@ | ||
// handle "too many open files" error | ||
if(err.code == 'OK' && err.errno === 0) { | ||
if(err.code == 'EMFILE' || (err.code == 'OK' && err.errno === 0)) { | ||
if(self.open-1>self.detectedMaxOpen) { | ||
@@ -90,0 +90,0 @@ self.detectedMaxOpen = self.open-1; |
{ | ||
"name": "filewalker", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Fast and rock-solid asynchronous traversing of directories and files for node.js", | ||
@@ -5,0 +5,0 @@ "author": { |
24584
2.26%10
11.11%603
3.43%