MCPcopy Create free account
hub / github.com/apache/maka / resolveDirectoryEntryPathInScope

Function resolveDirectoryEntryPathInScope

packages/runtime/src/workspace-executor.ts:412–422  ·  view source on GitHub ↗
(
  cwd: string,
  inputPath: string,
  label: string,
  scope: WorkspacePathScope,
)

Source from the content-addressed store, hash-verified

410}
411
412async function resolveDirectoryEntryPathInScope(
413 cwd: string,
414 inputPath: string,
415 label: string,
416 scope: WorkspacePathScope,
417): Promise<string> {
418 const target = await resolveCanonicalDirectoryEntryTarget(cwd, inputPath);
419 return scope === 'host'
420 ? target.path
421 : assertInsideCwd(target.root, target.path, inputPath, label);
422}
423
424function assertInsideCwd(
425 root: string,

Callers 1

applyPatchMethod · 0.85

Calls 2

assertInsideCwdFunction · 0.85

Tested by

no test coverage detected