MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / ensureLogDir

Method ensureLogDir

lib/logger.ts:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 private async ensureLogDir() {
17 if (!existsSync(this.logDir)) {
18 await mkdir(this.logDir, { recursive: true })
19 }
20 }
21
22 private formatData(data?: any): string {
23 if (!data) return ""

Callers 1

writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected