Renamed fileReadStream -> createReadStream
Did the same for fileWriteStream as well.
This commit is contained in:
parent
48562fa938
commit
0fcc94525a
@ -376,7 +376,7 @@ exports.realpath = function(path, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.fileReadStream = function(path, options) {
|
exports.createReadStream = function(path, options) {
|
||||||
return new FileReadStream(path, options);
|
return new FileReadStream(path, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -465,7 +465,7 @@ var FileReadStream = exports.FileReadStream = function(path, options) {
|
|||||||
};
|
};
|
||||||
FileReadStream.prototype.__proto__ = process.EventEmitter.prototype;
|
FileReadStream.prototype.__proto__ = process.EventEmitter.prototype;
|
||||||
|
|
||||||
exports.fileWriteStream = function(path, options) {
|
exports.createWriteStream = function(path, options) {
|
||||||
return new FileWriteStream(path, options);
|
return new FileWriteStream(path, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ process.mixin(require('../common'));
|
|||||||
|
|
||||||
var
|
var
|
||||||
fn = path.join(fixturesDir, 'multipart.js'),
|
fn = path.join(fixturesDir, 'multipart.js'),
|
||||||
file = fs.fileReadStream(fn),
|
file = fs.createReadStream(fn),
|
||||||
|
|
||||||
callbacks = {
|
callbacks = {
|
||||||
open: -1,
|
open: -1,
|
||||||
|
@ -2,7 +2,7 @@ process.mixin(require('../common'));
|
|||||||
|
|
||||||
var
|
var
|
||||||
fn = path.join(fixturesDir, "write.txt"),
|
fn = path.join(fixturesDir, "write.txt"),
|
||||||
file = fs.fileWriteStream(fn),
|
file = fs.createWriteStream(fn),
|
||||||
|
|
||||||
EXPECTED = '0123456789',
|
EXPECTED = '0123456789',
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user