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

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

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

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

Parameters

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

Returns

Directory | undefined

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

Parameters

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

Returns

Directory | undefined