MCPcopy Create free account
hub / github.com/experdot/pointer / pathExists

Function pathExists

src/main/attachmentStorage.ts:17–24  ·  view source on GitHub ↗
(targetPath: string)

Source from the content-addressed store, hash-verified

15}
16
17async function pathExists(targetPath: string): Promise<boolean> {
18 try {
19 await stat(targetPath)
20 return true
21 } catch {
22 return false
23 }
24}
25
26async function ensureAttachmentsRoot(): Promise<string> {
27 const attachmentsRoot = getCurrentAttachmentsDirectory()

Callers 3

deleteAttachmentFileFunction · 0.70
moveAttachmentFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected