Skip to main content
Module

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

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Directory.prototype.addDirectoryAtPath
import { Directory } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

Adds an existing directory from the relative path or directory name, or throws if it doesn't exist.

Will return the directory if it was already added.

Parameters

relativeOrAbsoluteDirPath: string
  • Directory name or path to the directory that should be added.
optional
options: DirectoryAddOptions