readdir
Call Signature
Section titled “Call Signature”readdir(
this,path,cb):void
Defined in: src/node/async.ts:447
Asynchronous readdir. Reads the contents of a directory.
The callback gets two arguments (err, files) where files is an array of
the names of the files in the directory excluding '.' and '..'.
Parameters
Section titled “Parameters”unknown
PathLike
Callback<[string[]]>
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”readdir(
this,path,options,cb):void
Defined in: src/node/async.ts:448
Asynchronous readdir. Reads the contents of a directory.
The callback gets two arguments (err, files) where files is an array of
the names of the files in the directory excluding '.' and '..'.
Parameters
Section titled “Parameters”unknown
PathLike
options
Section titled “options”withFileTypes?
Section titled “withFileTypes?”false
Callback<[string[]]>
Returns
Section titled “Returns”void
Call Signature
Section titled “Call Signature”readdir(
this,path,options,cb):void
Defined in: src/node/async.ts:449
Asynchronous readdir. Reads the contents of a directory.
The callback gets two arguments (err, files) where files is an array of
the names of the files in the directory excluding '.' and '..'.
Parameters
Section titled “Parameters”unknown
PathLike
options
Section titled “options”withFileTypes
Section titled “withFileTypes”true
Returns
Section titled “Returns”void