|
@ -598,6 +598,8 @@ fs.createReadStream = function(path, options) { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
var ReadStream = fs.ReadStream = function(path, options) { |
|
|
var ReadStream = fs.ReadStream = function(path, options) { |
|
|
|
|
|
if (!(this instanceof ReadStream)) return new ReadStream(path, options); |
|
|
|
|
|
|
|
|
events.EventEmitter.call(this); |
|
|
events.EventEmitter.call(this); |
|
|
|
|
|
|
|
|
var self = this; |
|
|
var self = this; |
|
@ -794,6 +796,8 @@ fs.createWriteStream = function(path, options) { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
var WriteStream = fs.WriteStream = function(path, options) { |
|
|
var WriteStream = fs.WriteStream = function(path, options) { |
|
|
|
|
|
if (!(this instanceof WriteStream)) return new WriteStream(path, options); |
|
|
|
|
|
|
|
|
events.EventEmitter.call(this); |
|
|
events.EventEmitter.call(this); |
|
|
|
|
|
|
|
|
this.path = path; |
|
|
this.path = path; |
|
|