MCPcopy Create free account
hub / github.com/EvilFreelancer/openapi-to-cli / ensureCacheDir

Method ensureCacheDir

src/openapi-loader.ts:221–226  ·  view source on GitHub ↗
(cachePath: string)

Source from the content-addressed store, hash-verified

219 }
220
221 private ensureCacheDir(cachePath: string): void {
222 const dir = path.dirname(cachePath);
223 if (!this.fs.existsSync(dir)) {
224 this.fs.mkdirSync(dir, { recursive: true });
225 }
226 }
227}

Callers 1

loadSpecMethod · 0.95

Calls 2

existsSyncMethod · 0.65
mkdirSyncMethod · 0.65

Tested by

no test coverage detected