MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / assertDirectory

Function assertDirectory

projects/runtime-node/src/localProcess.ts:44–47  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

42}
43
44async function assertDirectory(cwd: string): Promise<void> {
45 const stat = await fs.stat(cwd)
46 if (!stat.isDirectory()) throw new Error(`cwd is not a directory: ${cwd}`)
47}
48
49function bufferOutput(state: ActiveProcess, chunk: ProcessOutputChunk): void {
50 state.output.push(chunk)

Callers 1

startChildFunction · 0.70

Calls 1

isDirectoryMethod · 0.80

Tested by

no test coverage detected