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

x/deno2node/src/deps.deno.ts>Directory#getDirectoryOrThrow

Compile your Deno project to run on Node.js.
Go to Latest
method Directory.prototype.getDirectoryOrThrow
import { Directory } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";

Gets a child directory with the specified path or throws if not found.

Parameters

path: string
  • Relative path from this directory or absolute path.

Gets a child directory by the specified condition or throws if not found.

Parameters

condition: (directory: Directory) => boolean
  • Condition to check the directory with.