Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/view_engine/deps.ts>existsSync

🚀A Template View Engine for Deno frameworks
Latest
function existsSync
Deprecated
Deprecated

Checking the state of a file before using it causes a race condition. Perform the actual operation directly instead.

import { existsSync } from "https://deno.land/x/view_engine@v10.6.0/deps.ts";

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

Parameters

filePath: string

Returns

boolean