From 0fcc94525a59df4ae1a90a7c3d4c62df0e19b36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Fri, 5 Mar 2010 18:56:25 +0100 Subject: [PATCH] Renamed fileReadStream -> createReadStream Did the same for fileWriteStream as well. --- lib/fs.js | 4 ++-- test/simple/test-file-read-stream.js | 2 +- test/simple/test-file-write-stream.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index cf133158e8b..579199d93e1 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -376,7 +376,7 @@ exports.realpath = function(path, callback) { }); } -exports.fileReadStream = function(path, options) { +exports.createReadStream = function(path, options) { return new FileReadStream(path, options); }; @@ -465,7 +465,7 @@ var FileReadStream = exports.FileReadStream = function(path, options) { }; FileReadStream.prototype.__proto__ = process.EventEmitter.prototype; -exports.fileWriteStream = function(path, options) { +exports.createWriteStream = function(path, options) { return new FileWriteStream(path, options); }; diff --git a/test/simple/test-file-read-stream.js b/test/simple/test-file-read-stream.js index 3b358b5c5c9..447629e41b6 100644 --- a/test/simple/test-file-read-stream.js +++ b/test/simple/test-file-read-stream.js @@ -2,7 +2,7 @@ process.mixin(require('../common')); var fn = path.join(fixturesDir, 'multipart.js'), - file = fs.fileReadStream(fn), + file = fs.createReadStream(fn), callbacks = { open: -1, diff --git a/test/simple/test-file-write-stream.js b/test/simple/test-file-write-stream.js index 5f15bfe1c37..89059033ab3 100644 --- a/test/simple/test-file-write-stream.js +++ b/test/simple/test-file-write-stream.js @@ -2,7 +2,7 @@ process.mixin(require('../common')); var fn = path.join(fixturesDir, "write.txt"), - file = fs.fileWriteStream(fn), + file = fs.createWriteStream(fn), EXPECTED = '0123456789',