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

Function linkExists

apps/desktop/src/main/cli-install.test.ts:33–40  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

31
32/** Existence of the link/file itself (does not follow symlinks). */
33const linkExists = async (p: string): Promise<boolean> => {
34 try {
35 await lstat(p)
36 return true
37 } catch {
38 return false
39 }
40}
41
42const wrapperLoc = (): { wrapperPath: string; cliJsPath: string } => ({
43 wrapperPath: path.join(userDataDir, 'zen'),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected