Commit 2e932a08 authored by Benjamin Chelli's avatar Benjamin Chelli

Rename fileExists to exists to match nodejs File System native interface

parent 49f81df4
...@@ -356,7 +356,7 @@ proto.writeFile = function(src, dest, cb){ ...@@ -356,7 +356,7 @@ proto.writeFile = function(src, dest, cb){
checkDone(); checkDone();
} }
this.fileExists(dest, function(err, exists){ this.exists(dest, function(err, exists){
if(err) cb && cb(err); if(err) cb && cb(err);
...@@ -384,8 +384,8 @@ proto.writeFile = function(src, dest, cb){ ...@@ -384,8 +384,8 @@ proto.writeFile = function(src, dest, cb){
/* /*
* fileExists * exists
* ========= * ======
* *
* test the existence of a file * test the existence of a file
* *
...@@ -394,7 +394,7 @@ proto.writeFile = function(src, dest, cb){ ...@@ -394,7 +394,7 @@ proto.writeFile = function(src, dest, cb){
* - close the file * - close the file
* *
*/ */
proto.fileExists = function(path, cb){ proto.exists = function(path, cb){
var connection = this; var connection = this;
...@@ -424,7 +424,7 @@ proto.fileExists = function(path, cb){ ...@@ -424,7 +424,7 @@ proto.fileExists = function(path, cb){
proto.unlinkFile = function(path, cb){ proto.unlinkFile = function(path, cb){
var connection = this; var connection = this;
this.fileExists(path, function(err, exists){ this.exists(path, function(err, exists){
if(err) cb && cb(err); if(err) cb && cb(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment