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

Function handleMkdir

packages/server/src/routes/fs.ts:414–430  ·  view source on GitHub ↗
(
  ix: IInstantiationService,
  sessionId: string,
  req: { id: string; body: unknown },
  reply: { send(payload: unknown): unknown },
)

Source from the content-addressed store, hash-verified

412}
413
414async function handleMkdir(
415 ix: IInstantiationService,
416 sessionId: string,
417 req: { id: string; body: unknown },
418 reply: { send(payload: unknown): unknown },
419): Promise<void> {
420 const parsed = fsMkdirRequestSchema.safeParse(req.body ?? {});
421 if (!parsed.success) {
422 reply.send(buildValidationEnvelope(parsed.error.issues, req.id));
423 return;
424 }
425 const body: FsMkdirRequest = parsed.data;
426 const data = await ix.invokeFunction((a) =>
427 a.get(IFsService).mkdir(sessionId, body),
428 );
429 reply.send(okEnvelope(data, req.id));
430}
431
432async function handleSearch(
433 ix: IInstantiationService,

Callers 1

registerFsRoutesFunction · 0.85

Calls 6

okEnvelopeFunction · 0.90
buildValidationEnvelopeFunction · 0.70
sendMethod · 0.65
invokeFunctionMethod · 0.65
mkdirMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected