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

x/bob/deps.ts>fs.exists

A static site generator for the dynamic web - develop with TSX and build with Deno
Latest
function fs.exists
Re-export
Deprecated
Deprecated

Checking the state of a file before using it causes a race condition. Perform the actual operation directly instead.

import { fs } from "https://deno.land/x/bob@v2.8.1/deps.ts";
const { exists } = fs;

Test whether or not the given path exists by checking with the file system

Parameters

filePath: string

Returns

Promise<boolean>