method DenoHost.readDir
DenoHost.readDir(path: string): AsyncIterable<DenoDirEntry>

Lists directory entries. Named and shaped after the real API this host defaults to: Deno.readDir (capital D) returns an async iterable, so it must be consumed with for await.

Parameters

path: string

Return Type

AsyncIterable<DenoDirEntry>

Usage

import { type DenoHost } from "runtime/src/index.ts";