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

Function ensureAttachmentsRoot

src/main/attachmentStorage.ts:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26async function ensureAttachmentsRoot(): Promise<string> {
27 const attachmentsRoot = getCurrentAttachmentsDirectory()
28 await mkdir(attachmentsRoot, { recursive: true })
29 return attachmentsRoot
30}
31
32async function resolveAttachmentPath(localPath: string): Promise<string> {
33 const attachmentsRoot = await ensureAttachmentsRoot()

Callers 1

resolveAttachmentPathFunction · 0.85

Calls 1

Tested by

no test coverage detected