Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.1/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.