MCPcopy Index your code
hub / github.com/codeaashu/claude-code / ensureInboxDir

Function ensureInboxDir

src/utils/teammateMailbox.ts:71–77  ·  view source on GitHub ↗

* Ensure the inbox directory exists for a team

(teamName?: string)

Source from the content-addressed store, hash-verified

69 * Ensure the inbox directory exists for a team
70 */
71async function ensureInboxDir(teamName?: string): Promise<void> {
72 const team = teamName || getTeamName() || 'default'
73 const safeTeam = sanitizePathComponent(team)
74 const inboxDir = join(getTeamsDir(), safeTeam, 'inboxes')
75 await mkdir(inboxDir, { recursive: true })
76 logForDebugging(`[TeammateMailbox] Ensured inbox directory: ${inboxDir}`)
77}
78
79/**
80 * Read all messages from a teammate's inbox

Callers 1

writeToMailboxFunction · 0.85

Calls 5

getTeamNameFunction · 0.85
sanitizePathComponentFunction · 0.85
getTeamsDirFunction · 0.85
mkdirFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected