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

Function fileExists

tooling/scripts/sidebar-vim-smoke.mjs:55–57  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

53const lastNoteFile = `${pad(NOTE_COUNT - 1)} - note.md`
54
55async function fileExists(p) {
56 try { await access(p, constants.F_OK); return true } catch { return false }
57}
58
59async function prepareBuild() {
60 if (skipBuild && (await fileExists(desktopOutMain))) return

Callers 1

prepareBuildFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected