Skip to main content
Module

x/pagic/deps.ts>fs.existsSync

A static site generator powered by Deno + React
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/pagic@v1.5.1/deps.ts";
const { existsSync } = fs;

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

Parameters

filePath: string

Returns

boolean