Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pup/lib/common/utils.ts>dirExists

Universal process manager built in Deno
Go to Latest
function dirExists
import { dirExists } from "https://deno.land/x/pup@1.0.0-rc.14/lib/common/utils.ts";

Check if a directory exists.

Parameters

dirPath: string
  • The path to the directory to check.

Returns

Promise<boolean>

A promise that resolves to true if the directory exists, false otherwise.