Module

std/node/fs.ts>readdirSync

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

Parameters

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

Returns

Dirent[]

Parameters

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

Returns

string[]
import readdirSync
import { readdirSync } from "https://dotland.deno.dev/std@0.92.0/node/fs.ts";