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

Function fileExists

tooling/scripts/perf-web-runtime.mjs:88–95  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

86}
87
88async function fileExists(path) {
89 try {
90 await access(path, constants.F_OK)
91 return true
92 } catch {
93 return false
94 }
95}
96
97async function waitForFile(path, timeoutMs) {
98 const startedAt = performance.now()

Callers 2

waitForFileFunction · 0.70
prepareWebDistFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected