MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / escapesProject

Function escapesProject

sdk/src/tools/path-utils.ts:8–14  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

6}
7
8function escapesProject(relativePath: string): boolean {
9 return (
10 relativePath === '..' ||
11 relativePath.startsWith(`..${path.sep}`) ||
12 path.isAbsolute(relativePath)
13 )
14}
15
16export function resolveFilePathWithinProject(
17 projectRoot: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected