@@ -351,13 +351,11 @@ added: REPLACEME
351351Synchronously close the directory's underlying resource handle.
352352Subsequent reads will result in errors.
353353
354- ### dir.read([ options ] )
354+ ### dir.read()
355355<!-- YAML
356356added: REPLACEME
357357-->
358358
359- * ` options ` {Object}
360- * ` encoding ` {string|null} ** Default:** ` 'utf8' `
361359* Returns: {Promise} containing {fs.Dirent}
362360
363361Asynchronously read the next directory entry via readdir(3) as an
@@ -369,13 +367,11 @@ is completed.
369367_ Directory entries returned by this function are in no particular order as
370368provided by the operating system's underlying directory mechanisms._
371369
372- ### dir.read([ options, ] callback)
370+ ### dir.read(callback)
373371<!-- YAML
374372added: REPLACEME
375373-->
376374
377- * ` options ` {Object}
378- * ` encoding ` {string|null} ** Default:** ` 'utf8' `
379375* ` callback ` {Function}
380376 * ` err ` {Error}
381377 * ` dirent ` {fs.Dirent}
@@ -385,25 +381,19 @@ Asynchronously read the next directory entry via readdir(3) as an
385381
386382The ` callback ` will be called with a [ Dirent] [ ] after the read is completed.
387383
388- The ` encoding ` option sets the encoding of the ` name ` in the ` dirent ` .
389-
390384_ Directory entries returned by this function are in no particular order as
391385provided by the operating system's underlying directory mechanisms._
392386
393- ### dir.readSync([ options ] )
387+ ### dir.readSync()
394388<!-- YAML
395389added: REPLACEME
396390-->
397391
398- * ` options ` {Object}
399- * ` encoding ` {string|null} ** Default:** ` 'utf8' `
400392* Returns: {fs.Dirent}
401393
402394Synchronously read the next directory entry via readdir(3) as an
403395[ ` fs.Dirent ` ] [ ] .
404396
405- The ` encoding ` option sets the encoding of the ` name ` in the ` dirent ` .
406-
407397_ Directory entries returned by this function are in no particular order as
408398provided by the operating system's underlying directory mechanisms._
409399
@@ -2658,8 +2648,7 @@ Creates an [`fs.Dir`][], which contains all further functions for reading from
26582648and cleaning up the directory.
26592649
26602650The ` encoding ` option sets the encoding for the ` path ` while opening the
2661- directory and subsequent read operations (unless otherwise overriden during
2662- reads from the directory).
2651+ directory and subsequent read operations.
26632652
26642653## fs.opendirSync(path[ , options] )
26652654<!-- YAML
@@ -2677,8 +2666,7 @@ Creates an [`fs.Dir`][], which contains all further functions for reading from
26772666and cleaning up the directory.
26782667
26792668The ` encoding ` option sets the encoding for the ` path ` while opening the
2680- directory and subsequent read operations (unless otherwise overriden during
2681- reads from the directory).
2669+ directory and subsequent read operations.
26822670
26832671## fs.read(fd, buffer, offset, length, position, callback)
26842672<!-- YAML
@@ -4835,8 +4823,7 @@ Creates an [`fs.Dir`][], which contains all further functions for reading from
48354823and cleaning up the directory.
48364824
48374825The ` encoding ` option sets the encoding for the ` path ` while opening the
4838- directory and subsequent read operations (unless otherwise overriden during
4839- reads from the directory).
4826+ directory and subsequent read operations.
48404827
48414828Example using async interation:
48424829
0 commit comments