Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/postcss_import/lib/deps.js>fs.Dir

postcss-import plugin for Deno
Latest
class fs.Dir
Re-export
import { fs } from "https://deno.land/x/postcss_import@0.1.4/lib/deps.js";
const { Dir } = fs;

Constructors

new
Dir(path: string | Uint8Array)

Properties

private
asyncIterator: AsyncIterator<Deno.DirEntry> | null
private
dirPath: string | Uint8Array
private
syncIterator: Iterator<Deno.DirEntry> | null
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.

closeSync(): void

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>