UNPKG

mcp-think-tank

Version:

Structured thinking and knowledge management tool for Model Context Protocol

12 lines (11 loc) 322 B
import * as fs from 'fs'; /** * Creates a directory and any parent directories if they don't exist * @param dirPath - The path to create */ export function createDirectory(dirPath) { if (!fs.existsSync(dirPath)) { fs.mkdirSync(dirPath, { recursive: true }); // Directory created, no logging } }