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

Gets a directory by the specified path or throws if it doesn't exist.

Parameters

dirPath: string
  • Path to create the directory at.
optional
message: string | (() => string)

Returns

Directory