MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fileExists

Function fileExists

graph-ui/src/provider/cypher.ts:345–348  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

343
344/** Whether the engine has a file node for `filePath`. Distinguishes "nothing here" from "not indexed". */
345export function fileExists(filePath: string): string {
346 return `MATCH (n:${FILE_LABEL}) WHERE n.${NODE_PROPS.filePath} = "${escapeLiteral(filePath)}"`
347 + ` ${ret(COLUMNS.fileExists)} LIMIT 1`;
348}
349
350/** Outgoing invocations of a symbol, one row per distinct target. */
351export function callsOut(qualifiedName: string, limit = DEFAULT_LIMIT): string {

Callers 2

resolveSymbolAtMethod · 0.90
searchFileMethod · 0.90

Calls 2

escapeLiteralFunction · 0.85
retFunction · 0.85

Tested by

no test coverage detected