summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolan McMahon <caolan.mcmahon@gmail.com>2013-05-26 13:05:46 -0700
committerCaolan McMahon <caolan.mcmahon@gmail.com>2013-05-26 13:05:46 -0700
commite043100ece5898d6d930e8a6d4b25432bd50262d (patch)
treece475b7aed5b006b49dcd98178e269256c4986a4
parentebec545152d6623f81922405006d1957c1d3de97 (diff)
parenta07e26c5c6fa9562306cee311396a944e4d9bce0 (diff)
downloadasync-e043100ece5898d6d930e8a6d4b25432bd50262d.tar.gz
Merge pull request #320 from jhnns/master
Replaced all occurences of path.exists with fs.exists in README
-rw-r--r--README.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index 257def3..9ff1acf 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ async.map(['file1','file2','file3'], fs.stat, function(err, results){
// results is now an array of stats for each file
});
-async.filter(['file1','file2','file3'], path.exists, function(results){
+async.filter(['file1','file2','file3'], fs.exists, function(results){
// results now equals an array of the existing files
});
@@ -310,7 +310,7 @@ __Alias:__ select
Returns a new array of all the values which pass an async truth test.
_The callback for each iterator call only accepts a single argument of true or
false, it does not accept an error argument first!_ This is in-line with the
-way node libraries work with truth tests like path.exists. This operation is
+way node libraries work with truth tests like fs.exists. This operation is
performed in parallel, but the results array will be in the same order as the
original.
@@ -326,7 +326,7 @@ __Arguments__
__Example__
```js
-async.filter(['file1','file2','file3'], path.exists, function(results){
+async.filter(['file1','file2','file3'], fs.exists, function(results){
// results now equals an array of the existing files
});
```
@@ -435,7 +435,7 @@ __Arguments__
__Example__
```js
-async.detect(['file1','file2','file3'], path.exists, function(result){
+async.detect(['file1','file2','file3'], fs.exists, function(result){
// result now equals the first file in the list that exists
});
```
@@ -491,7 +491,7 @@ __Alias:__ any
Returns true if at least one element in the array satisfies an async test.
_The callback for each iterator call only accepts a single argument of true or
false, it does not accept an error argument first!_ This is in-line with the
-way node libraries work with truth tests like path.exists. Once any iterator
+way node libraries work with truth tests like fs.exists. Once any iterator
call returns true, the main callback is immediately called.
__Arguments__
@@ -507,7 +507,7 @@ __Arguments__
__Example__
```js
-async.some(['file1','file2','file3'], path.exists, function(result){
+async.some(['file1','file2','file3'], fs.exists, function(result){
// if result is true then at least one of the files exists
});
```
@@ -522,7 +522,7 @@ __Alias:__ all
Returns true if every element in the array satisfies an async test.
_The callback for each iterator call only accepts a single argument of true or
false, it does not accept an error argument first!_ This is in-line with the
-way node libraries work with truth tests like path.exists.
+way node libraries work with truth tests like fs.exists.
__Arguments__
@@ -537,7 +537,7 @@ __Arguments__
__Example__
```js
-async.every(['file1','file2','file3'], path.exists, function(result){
+async.every(['file1','file2','file3'], fs.exists, function(result){
// if result is true then every file exists
});
```