MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / fileExists

Function fileExists

tooling/scripts/perf-desktop-runtime.mjs:93–100  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

91}
92
93async function fileExists(path) {
94 try {
95 await access(path, constants.F_OK)
96 return true
97 } catch {
98 return false
99 }
100}
101
102async function waitForFile(path, timeoutMs) {
103 const startedAt = performance.now()

Callers 2

waitForFileFunction · 0.70
prepareDesktopBuildFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected