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

Method fileExists

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

Check if a file exists

(filePath: string)

Source from the content-addressed store, hash-verified

127 iterateNodesByKind?(kind: Node['kind']): IterableIterator<Node>;
128 /** Check if a file exists */
129 fileExists(filePath: string): boolean;
130 /** Read file content */
131 readFile(filePath: string): string | null;
132 /** `readFile(filePath)?.includes(needle) ?? false` for an ASCII `needle`, without decoding a file that lacks it. */

Callers 15

buildPythonModuleIndexFunction · 0.80
resolveRelativeImportFunction · 0.80
tryWithExtensionsFunction · 0.80
indexedFunction · 0.80
resolveFromOwnConfigFunction · 0.80
searchCppIncludeDirsFunction · 0.80
resolvePhpIncludePathFunction · 0.80
crateRootFunction · 0.80
resolveIncludeFunction · 0.80
packageOfDirFunction · 0.80
pathDependenciesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected