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

Function buildFsEntry

packages/agent-core/src/services/fs/fsService.ts:488–509  ·  view source on GitHub ↗
(
  relPath: string,
  name: string,
  absPath: string,
  dirent: import('node:fs').Dirent,
  withMimeAndBinary: boolean,
)

Source from the content-addressed store, hash-verified

486}
487
488async function buildFsEntry(
489 relPath: string,
490 name: string,
491 absPath: string,
492 dirent: import('node:fs').Dirent,
493 withMimeAndBinary: boolean,
494): Promise<FsEntry> {
495 let st: import('node:fs').Stats | undefined;
496 try {
497 st = await fs.lstat(absPath);
498 } catch {
499
500 }
501 return buildFsEntryFromDirentAndStat(
502 relPath,
503 name,
504 absPath,
505 dirent,
506 st,
507 withMimeAndBinary,
508 );
509}
510
511function buildFsEntryFromDirentAndStat(
512 relPath: string,

Callers 1

listMethod · 0.85

Calls 1

Tested by

no test coverage detected