MCPcopy Index your code
hub / github.com/volcengine/OpenViking / ensureDir

Function ensureDir

examples/codex-memory-plugin/scripts/debug-log.mjs:19–23  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

17}
18
19function ensureDir(filePath) {
20 try {
21 mkdirSync(dirname(filePath), { recursive: true });
22 } catch { /* best effort */ }
23}
24
25function writeLine(filePath, obj) {
26 try {

Callers 1

createLoggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected