MCPcopy Create free account
hub / github.com/electric-sql/electric / pathExists

Function pathExists

packages/agents/scripts/sync-docs.mjs:13–20  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

11const target = path.join(packageRoot, `docs`)
12
13async function pathExists(value) {
14 try {
15 await fs.access(value)
16 return true
17 } catch {
18 return false
19 }
20}
21
22async function clean() {
23 await fs.rm(target, { recursive: true, force: true })

Callers 1

sync-docs.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected