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

x/snel/imports/fs.ts>exists

A Cybernetical framework for svelte applications in deno
Latest
function 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 { exists } from "https://deno.land/x/snel@v0.7.1/imports/fs.ts";

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

Parameters

filePath: string

Returns

Promise<boolean>