MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / ensureDir

Function ensureDir

packages/parser/src/formats/shuakami-qq-preprocessor.ts:37–41  ·  view source on GitHub ↗

* 确保目录存在

(dir: string)

Source from the content-addressed store, hash-verified

35 * 确保目录存在
36 */
37function ensureDir(dir: string): void {
38 if (!fs.existsSync(dir)) {
39 fs.mkdirSync(dir, { recursive: true })
40 }
41}
42
43/**
44 * 从字符串中提取 JSON 对象(处理嵌套和转义)

Callers 1

preprocessQQJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected