MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / getAttachmentDir

Function getAttachmentDir

src/runtime/adapters/attachment-utils.ts:22–24  ·  view source on GitHub ↗

* Build the attachment directory for a channel session. * Path: data/sessions/ /attachments/

(rootDir: string, channelId: string)

Source from the content-addressed store, hash-verified

20 * Path: data/sessions/<channelId>/attachments/
21 */
22function getAttachmentDir(rootDir: string, channelId: string): string {
23 return path.resolve(rootDir, "data", "sessions", channelId, ATTACHMENTS_DIR);
24}
25
26/**
27 * Sanitise a filename to remove path separators and other unsafe characters.

Callers 2

saveAttachmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected