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>fileExists

Universal process manager built in Deno
Go to Latest
function fileExists
import { fileExists } from "https://deno.land/x/pup@1.0.0-rc.12/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.