Extremely Popular
Latest
method Project.prototype.addDirectoryAtPathIfExists
import { Project } from "https://dotland.deno.dev/x/fresh@1.6.8/src/dev/deps.ts";

Adds an existing directory from the path or returns undefined 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 | undefined