Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/fstream/lib/reader.js')
-rw-r--r--node_modules/fstream/lib/reader.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/node_modules/fstream/lib/reader.js b/node_modules/fstream/lib/reader.js
index eaf921cd0..0edb794d3 100644
--- a/node_modules/fstream/lib/reader.js
+++ b/node_modules/fstream/lib/reader.js
@@ -210,13 +210,15 @@ Reader.prototype._stat = function (currentStat) {
return
}
- if (me._paused) {
+ if (me._paused && me.type !== "Directory") {
me.once("resume", go)
return
}
var ev = events[e ++]
- if (!ev) return me._read()
+ if (!ev) {
+ return me._read()
+ }
me.emit(ev, props)
go()
})()