Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
method Project.prototype.addDirectoryAtPathIfExists
import { Project } from "https://deno.land/x/fresh@1.1.5/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