Skip to content

readdir

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 '..'.

unknown

PathLike

Callback<[string[]]>

void

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 '..'.

unknown

PathLike

false

Callback<[string[]]>

void

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 '..'.

unknown

PathLike

true

Callback<[Dirent<string>[]]>

void