- readdirSync(path, options?): string[]
Parameters
- path: PathLike
Optional
options: null | BufferEncoding | ObjectEncodingOptions & ReaddirOptions & {
withFileTypes?: false;
}
Returns string[]
- readdirSync(path, options): Buffer[]
Parameters
- path: PathLike
- options: BufferEncodingOption & ReaddirOptions & {
withFileTypes?: false;
}
Returns Buffer[]
- readdirSync(path, options?): string[] | Buffer[]
Parameters
- path: PathLike
Optional
options: null | BufferEncoding | ObjectEncodingOptions & ReaddirOptions & {
withFileTypes?: false;
}
Returns string[] | Buffer[]
- readdirSync(path, options): Dirent[]
Parameters
- path: PathLike
- options: ObjectEncodingOptions & ReaddirOptions & {
withFileTypes: true;
}
- readdirSync(path, options?): string[] | Dirent[] | Buffer[]
Parameters
- path: PathLike
Optional
options: null | BufferEncoding | (ReaddirOptions & (ObjectEncodingOptions | BufferEncodingOption))
Returns string[] | Dirent[] | Buffer[]