MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeTempDir

Function makeTempDir

packages/node-sdk/test/session-runtime-helpers.ts:19–23  ·  view source on GitHub ↗
(tempDirs: string[], prefix: string)

Source from the content-addressed store, hash-verified

17}
18
19export async function makeTempDir(tempDirs: string[], prefix: string): Promise<string> {
20 const dir = await mkdtemp(join(tmpdir(), prefix));
21 tempDirs.push(dir);
22 return dir;
23}
24
25export async function removeTempDirs(tempDirs: string[]): Promise<void> {
26 for (const dir of tempDirs.splice(0)) {

Calls 2

mkdtempFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected