* Ensure the inbox directory exists for a team
(teamName?: string)
| 69 | * Ensure the inbox directory exists for a team |
| 70 | */ |
| 71 | async 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 |
no test coverage detected