On this page

ReaddirTypes(path, options, callback): void
Attributes
options:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | Object | null | undefined
encoding:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | null
recursive:boolean
withFileTypes:false
callback:(err: ErrnoException | null, files?: string[]) => void
ReaddirTypes(path, options, callback): void
Attributes
options:"buffer" | Object
encoding:"buffer"
recursive:boolean
withFileTypes:false
callback:(err: ErrnoException | null, files?: Buffer<ArrayBufferLike>[]) => void
ReaddirTypes(path, options, callback): void
Attributes
options:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsTypes & { recursive?: boolean; withFileTypes?: false } | null | undefined
callback:(err: ErrnoException | null, files?: string[] | Buffer<ArrayBufferLike>[]) => void
ReaddirTypes(path, callback): void
Attributes
callback:(err: ErrnoException | null, files?: string[]) => void
ReaddirTypes(path, options, callback): void
Attributes
options:ObjectEncodingOptionsTypes & { recursive?: boolean; withFileTypes: true }
callback:(err: ErrnoException | null, files?: DirentTypes<string>[]) => void
ReaddirTypes(path, options, callback): void
Attributes
options:Object
encoding:"buffer"
recursive:boolean
withFileTypes:true
callback:(err: ErrnoException | null, files: DirentTypes<Buffer<ArrayBufferLike>>[]) => void