The names of the entries of the directory at path, without . and
.., as raw bytes, undecoded, in no particular order. Throws when the
directory cannot be read.
Parameters
path: string
options: {encoding:"buffer"}
Returns readonlyUint8Array<ArrayBufferLike>[]
readdirSync(path:string):string[]
The names in the directory at path, without . and ... Throws when it cannot be read.
Parameters
path: string
Returns string[]
readdirSync(path:string):string[]
The names of the entries in the directory at path, without . and ...
The names of the entries of the directory at
path, without.and.., as raw bytes, undecoded, in no particular order. Throws when the directory cannot be read.