Module

std/node/fs.ts>readdirSync

Deno standard library
Go to Latest
function readdirSync
import { readdirSync } from "https://dotland.deno.dev/std@0.145.0/node/fs.ts";

Parameters

path: string | Buffer | URL
options: { withFileTypes: true; encoding?: string; }

Parameters

path: string | Buffer | URL
optional
options: { withFileTypes?: false; encoding?: string; }

Returns

string[]

Parameters

path: string | Buffer | URL
optional
options: readDirOptions

Returns

Array<string | Dirent>
import readdirSync
import { readdirSync } from "https://dotland.deno.dev/std@0.145.0/node/fs.ts";