Skip to content

readdirSync

readdirSync(this, path, options?): string[]

Defined in: src/node/sync.ts:416

unknown

PathLike

BufferEncoding | { encoding: BufferEncoding | null; recursive?: boolean; withFileTypes?: false; } | null

string[]

readdirSync(this, path, options): NonSharedBuffer[]

Defined in: src/node/sync.ts:421

unknown

PathLike

"buffer" | { encoding: "buffer"; recursive?: boolean; withFileTypes?: false; }

NonSharedBuffer[]

readdirSync(this, path, options?): string[] | NonSharedBuffer[]

Defined in: src/node/sync.ts:426

unknown

PathLike

BufferEncoding | ObjectEncodingOptions & object | null

string[] | NonSharedBuffer[]

readdirSync(this, path, options): Dirent<string>[]

Defined in: src/node/sync.ts:431

unknown

PathLike

ObjectEncodingOptions & object

Dirent<string>[]

readdirSync(this, path, options): Dirent<NonSharedBuffer>[]

Defined in: src/node/sync.ts:436

unknown

PathLike

"buffer"

boolean

true

Dirent<NonSharedBuffer>[]

readdirSync(this, path, options?): string[] | Dirent<any>[] | Buffer<ArrayBufferLike>[]

Defined in: src/node/sync.ts:441

unknown

PathLike

NodeReaddirOptions

string[] | Dirent<any>[] | Buffer<ArrayBufferLike>[]