@@ -362,8 +362,10 @@ Asynchronously read the next directory entry via readdir(3) as an
362
362
After the read is completed, a ` Promise ` is returned that will be resolved with
363
363
an [ ` fs.Dirent ` ] [ ] , or ` null ` if there are no more directory entries to read.
364
364
365
- _ Directory entries returned by this function are in no particular order as
366
- provided by the operating system's underlying directory mechanisms._
365
+ Directory entries returned by this function are in no particular order as
366
+ provided by the operating system's underlying directory mechanisms.
367
+ Entries added or removed while iterating over the directory may or may not be
368
+ included in the iteration results.
367
369
368
370
### dir.read(callback)
369
371
<!-- YAML
@@ -380,8 +382,10 @@ Asynchronously read the next directory entry via readdir(3) as an
380
382
After the read is completed, the ` callback ` will be called with an
381
383
[ ` fs.Dirent ` ] [ ] , or ` null ` if there are no more directory entries to read.
382
384
383
- _ Directory entries returned by this function are in no particular order as
384
- provided by the operating system's underlying directory mechanisms._
385
+ Directory entries returned by this function are in no particular order as
386
+ provided by the operating system's underlying directory mechanisms.
387
+ Entries added or removed while iterating over the directory may or may not be
388
+ included in the iteration results.
385
389
386
390
### dir.readSync()
387
391
<!-- YAML
@@ -395,8 +399,10 @@ Synchronously read the next directory entry via readdir(3) as an
395
399
396
400
If there are no more directory entries to read, ` null ` will be returned.
397
401
398
- _ Directory entries returned by this function are in no particular order as
399
- provided by the operating system's underlying directory mechanisms._
402
+ Directory entries returned by this function are in no particular order as
403
+ provided by the operating system's underlying directory mechanisms.
404
+ Entries added or removed while iterating over the directory may or may not be
405
+ included in the iteration results.
400
406
401
407
### dir\[ Symbol.asyncIterator\] ()
402
408
<!-- YAML
@@ -413,8 +419,10 @@ The `null` case from `dir.read()` is handled internally.
413
419
414
420
See [ ` fs.Dir ` ] [ ] for an example.
415
421
416
- _ Directory entries returned by this iterator are in no particular order as
417
- provided by the operating system's underlying directory mechanisms._
422
+ Directory entries returned by this iterator are in no particular order as
423
+ provided by the operating system's underlying directory mechanisms.
424
+ Entries added or removed while iterating over the directory may or may not be
425
+ included in the iteration results.
418
426
419
427
## Class: fs.Dirent
420
428
<!-- YAML
0 commit comments