Module

x/nessie/deps.ts>exists

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Go to Latest
function exists
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://dotland.deno.dev/x/nessie@2.0.7/deps.ts";

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

Parameters

filePath: string

Returns

Promise<boolean>
import exists
import { exists } from "https://dotland.deno.dev/x/nessie@2.0.7/deps.ts";