Skip to main content
Module

x/ts_morph/ts_morph.d.ts>Directory#getDirectory

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Directory.prototype.getDirectory
import { Directory } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.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