@@ -173,7 +173,7 @@ res, err = cli:wait('/path/to/key', res.body.node.modifiedIndex + 2, 10)
173
173
174
174
### readdir
175
175
176
- ` syntax: res, err = cli:readdir(key :string [, recursive:boolean]) `
176
+ ` syntax: res, err = cli:readdir(dir :string [, recursive:boolean]) `
177
177
178
178
- ` recursive ` : boolean - get all the contents under a directory.
179
179
@@ -187,7 +187,7 @@ local res, err = cli:readdir('/path/to/dir')
187
187
188
188
### mkdir
189
189
190
- ` syntax: res, err = cli:mkdir(key :string [, ttl:int]) `
190
+ ` syntax: res, err = cli:mkdir(dir :string [, ttl:int]) `
191
191
192
192
Creates a directory.
193
193
@@ -199,7 +199,7 @@ local res, err = cli:mkdir('/path/to/dir', 10)
199
199
200
200
### mkdirnx
201
201
202
- ` syntax: res, err = cli:mkdirnx(key :string [, ttl:int]) `
202
+ ` syntax: res, err = cli:mkdirnx(dir :string [, ttl:int]) `
203
203
204
204
Creates a directory if that directory does not exist.
205
205
@@ -211,7 +211,7 @@ local res, err = cli:mkdirnx('/path/to/dir', 10)
211
211
212
212
### rmdir
213
213
214
- ` syntax: res, err = cli:rmdir(key :string [, recursive:boolean]) `
214
+ ` syntax: res, err = cli:rmdir(dir :string [, recursive:boolean]) `
215
215
216
216
- ` recursive ` : boolean - remove all the contents under a directory.
217
217
@@ -225,7 +225,7 @@ local res, err = cli:rmdir('/path/to/dir')
225
225
226
226
### waitdir
227
227
228
- ` syntax: res, err = cli:waitdir(key :string [, modified_index:uint [, timeout:uint] ]) `
228
+ ` syntax: res, err = cli:waitdir(dir :string [, modified_index:uint [, timeout:uint] ]) `
229
229
230
230
231
231
- ` modified_index ` : uint - this argument to use to the ` prev_index ` query of atomic operation.
@@ -239,7 +239,7 @@ local res, err = cli:waitdir('/path/to/dir')
239
239
240
240
### push
241
241
242
- ` syntax: res, err = cli:push(key :string, val:JSON value [, ttl:int]) `
242
+ ` syntax: res, err = cli:push(dir :string, val:JSON value [, ttl:int]) `
243
243
244
244
Pushs a value into the specified directory.
245
245
0 commit comments