Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/_fs/_fs_dir.ts>default

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class default
import { default } from "https://deno.land/std@0.168.0/node/_fs/_fs_dir.ts";

Constructors

new
default(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>