Module

std/node/fs.ts>readdirSync

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

Parameters

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

Parameters

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

Returns

string[]

Parameters

path: string | URL
optional
options: readDirOptions

Returns

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