@@ -218,7 +218,7 @@ Synchronous rmdir(2).
218
218
### fs.mkdir(path, [ mode] , [ callback] )
219
219
220
220
Asynchronous mkdir(2). No arguments other than a possible exception are given
221
- to the completion callback. ` mode ` defaults to ` 0777 ` .
221
+ to the completion callback. ` mode ` defaults to ` 0777 ` .
222
222
223
223
### fs.mkdirSync(path, [ mode] )
224
224
@@ -391,8 +391,11 @@ Watch for changes on `filename`. The callback `listener` will be called each
391
391
time the file is accessed.
392
392
393
393
The second argument is optional. The ` options ` if provided should be an object
394
- containing two members a boolean, ` persistent ` , and ` interval ` , a polling
395
- value in milliseconds. The default is ` { persistent: true, interval: 0 } ` .
394
+ containing two members a boolean, ` persistent ` , and ` interval ` . ` persistent `
395
+ indicates whether the process should continue to run as long as files are
396
+ being watched. ` interval ` indicates how often the target should be polled,
397
+ in milliseconds. (On Linux systems with inotify, ` interval ` is ignored.) The
398
+ default is ` { persistent: true, interval: 0 } ` .
396
399
397
400
The ` listener ` gets two arguments the current stat object and the previous
398
401
stat object:
@@ -418,7 +421,9 @@ Watch for changes on `filename`, where `filename` is either a file or a
418
421
directory. The returned object is [ fs.FSWatcher] ( #fs.FSWatcher ) .
419
422
420
423
The second argument is optional. The ` options ` if provided should be an object
421
- containing a boolean member ` persistent ` . The default is ` { persistent: true } ` .
424
+ containing a boolean member ` persistent ` , which indicates whether the process
425
+ should continue to run as long as files are being watched. The default is
426
+ ` { persistent: true } ` .
422
427
423
428
The listener callback gets two arguments ` (event, filename) ` . ` event ` is either
424
429
'rename' or 'change', and ` filename ` is the name of the file which triggered
0 commit comments