MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / fileExists

Function fileExists

src/tools/feature-hub.ts:17–24  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

15}
16
17async function fileExists(p: string): Promise<boolean> {
18 try {
19 await stat(p);
20 return true;
21 } catch {
22 return false;
23 }
24}
25
26async function findHubByName(rootDir: string, name: string): Promise<string | null> {
27 const hubs = await discoverHubs(rootDir);

Callers 1

getFeatureHubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected