(params: {
baseDir: string
fs: CodebuffFileSystem
})
| 268 | } |
| 269 | |
| 270 | export const ensureDirectoryExists = async (params: { |
| 271 | baseDir: string |
| 272 | fs: CodebuffFileSystem |
| 273 | }) => { |
| 274 | const { baseDir, fs } = params |
| 275 | |
| 276 | const baseDirExists = await fileExists({ filePath: baseDir, fs }) |
| 277 | if (!baseDirExists) { |
| 278 | await fs.mkdir(baseDir, { recursive: true }) |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Removes markdown code block syntax if present, including any language tag |
nothing calls this directly
no test coverage detected