Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dax/src/deps.ts>fs.exists

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to 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/dax@0.9.0/src/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>