MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / fileExists

Method fileExists

src/resolution/types.ts:115–115  ·  view source on GitHub ↗

Check if a file exists

(filePath: string)

Source from the content-addressed store, hash-verified

113 iterateNodesByKind?(kind: Node['kind']): IterableIterator<Node>;
114 /** Check if a file exists */
115 fileExists(filePath: string): boolean;
116 /** Read file content */
117 readFile(filePath: string): string | null;
118 /** `readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it. */

Callers 15

resolveRelativeImportFunction · 0.80
tryWithExtFunction · 0.80
resolveCppIncludePathFunction · 0.80
resolvePhpIncludePathFunction · 0.80
rustCrateRootDirFunction · 0.80
resolveUnderFunction · 0.80
inferCppReceiverTypeFunction · 0.80
resolveIncludeFunction · 0.80
resolveIncludeFunction · 0.80
detectFunction · 0.80
detectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected