Skip to content

Commit 43731da

Browse files
authored
Merge pull request #256 from olisto/master
Note about rejecting/erroring when path does not exist in exists() calls
2 parents 9a5d38e + 4fcc660 commit 43731da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _
9696
* `path = await create(path, data, flags)`
9797
* `mkdirp(path, callback(Error))`
9898
* `stat = await exists(path, watch)`
99+
* rejects if node does not exist
99100
* `data = await get(path, watch)`
100101
* `children = await get_children(path, watch)`
101102
* `[children, stat] = await get_children2( path, watch)`
@@ -113,6 +114,7 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _
113114
*The watcher methods are forward-looking subscriptions that can recieve multiple callbacks whenever a matching event occurs.*
114115

115116
* `stat = await w_exists(path, watch_cb)`
117+
* rejects if node does not exist
116118
* `data = await w_get(path, watch_cb)`
117119
* `children = await w_get_children(path, watch_cb)`
118120
* `[children, stat] = await w_get_children2 (path, watch_cb)`
@@ -150,6 +152,7 @@ Have a look at the code in the [examples](./examples) folder: with __master__, _
150152

151153
* path_cb : function(rc, error, path)
152154
* stat_cb : function(rc, error, stat)
155+
* Invoked with error set if path does not exist, also for a_exists() calls
153156
* data_cb : function(rc, error, stat, data)
154157
* child_cb : function(rc, error, children)
155158
* child2_cb : function(rc, error, children, stat)

0 commit comments

Comments
 (0)