readdir
Call Signature
Section titled “Call Signature”readdir(
this,path,cb):void
Defined in: src/node/async.ts:436
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:437
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:438
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