MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / isProjectFilePathSafe

Function isProjectFilePathSafe

packages/cli/src/path-resolver.ts:55–57  ·  view source on GitHub ↗
(filePath: string, projectRoot: string)

Source from the content-addressed store, hash-verified

53}
54
55export function isProjectFilePathSafe(filePath: string, projectRoot: string): boolean {
56 return resolveProjectFilePath(filePath, projectRoot) !== null;
57}

Callers 4

executeBatchFunction · 0.85
processQueueFunction · 0.85
createSketchServerFunction · 0.85

Calls 1

resolveProjectFilePathFunction · 0.85

Tested by

no test coverage detected