Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Project.prototype.addDirectoryAtPath
import { Project } from "https://deno.land/x/fresh_testing_library@0.13.0/deps/ts_morph.ts";

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

Will return the directory if it was already added.

Parameters

dirPath: string
  • Path to add the directory at.
optional
options: DirectoryAddOptions
  • Options.

Returns

Directory