Module

std/node/fs.ts>Dir

Deno standard library
Go to Latest
class Dir
import { Dir } from "https://deno.land/std@0.166.0/node/fs.ts";

Constructors

new
Dir(path: string | Uint8Array)

Properties

readonly
path: string

Methods

close(callback?: (...args: any[]) => void): Promise<void>

Unlike Node, Deno does not require managing resource ids for reading directories, and therefore does not need to close directories when finished reading.

Unlike Node, Deno does not require managing resource ids for reading directories, and therefore does not need to close directories when finished reading

read(callback?: (...args: any[]) => void): Promise<Dirent | null>
readSync(): Dirent | null
[Symbol.asyncIterator](): AsyncIterableIterator<Dirent>
import Dir
import { Dir } from "https://deno.land/std@0.166.0/node/fs.ts";