MCPcopy Create free account
hub / github.com/experdot/pointer / normalizeRoot

Function normalizeRoot

src/main/workspaceRuntime.ts:12–14  ·  view source on GitHub ↗
(rootPath: string)

Source from the content-addressed store, hash-verified

10let currentWorkspaceRoot: string | null = null
11
12function normalizeRoot(rootPath: string): string {
13 return path.resolve(rootPath)
14}
15
16export function syncWorkspaceAccessContext(context: WorkspaceAccessContext): void {
17 approvedWorkspaceRoots.clear()

Callers 3

approveWorkspacePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected