Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fed_dev/deps.ts>fs.exists

A Bundler with the web in mind.
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/fed_dev@0.9.0/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>