Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Check if a file exists.

Parameters

filePath: string
  • The path to the file to check.

Returns

Promise<boolean>

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