MCPcopy
hub / github.com/rolldown/tsdown / fsExists

Function fsExists

src/utils/fs.ts:5–10  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

3import type { Stats } from 'node:fs'
4
5export function fsExists(path: string): Promise<boolean> {
6 return access(path).then(
7 () => true,
8 () => false,
9 )
10}
11
12export function fsStat(path: string): Promise<Stats | null> {
13 return stat(path).catch(() => null)

Callers 4

fs.test.tsFile · 0.90
writeBundleFunction · 0.90
resolveEntryFunction · 0.90
clean.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…