MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / isPathWithinBoundary

Function isPathWithinBoundary

src/utils/xcode-state-reader.ts:39–41  ·  view source on GitHub ↗
(path: string, boundary: string)

Source from the content-addressed store, hash-verified

37}
38
39function isPathWithinBoundary(path: string, boundary: string): boolean {
40 return path === boundary || path.startsWith(`${boundary}${sep}`);
41}
42
43function listParentDirectories(startPath: string, boundaryPath: string): string[] {
44 const parents: string[] = [];

Callers 1

listParentDirectoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected