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

x/enviromodder/setup/deps.ts>fs.existsSync

A package (in beta) designed to make ReMapper environment statements more friendly
Go to Latest
function fs.existsSync
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/enviromodder@3.0.3/setup/deps.ts";
const { existsSync } = fs;

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

Parameters

filePath: string

Returns

boolean