MCPcopy Create free account
hub / github.com/ShipSecAI/studio / ensureOutputDir

Function ensureOutputDir

scripts/capture-run-stream.ts:26–31  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

24}
25
26async function ensureOutputDir(path: string) {
27 const dir = path.includes('/') ? path.slice(0, path.lastIndexOf('/')) : '.'
28 if (dir && dir !== '.') {
29 await mkdir(dir, { recursive: true })
30 }
31}
32
33async function startRun() {
34 const response = await fetch(

Callers 1

captureStreamFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected