Skip to main content
Module

x/dnit/mod.ts>fs.exists

dnit: typescript (deno) task executor
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/dnit@dnit-v1.14.2/mod.ts";
const { exists } = fs;

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

Parameters

filePath: string

Returns

Promise<boolean>