MCPcopy Index your code
hub / github.com/Stevenic/codepilot / hasKeys

Method hasKeys

lib/CodeIndex.js:167–171  ·  view source on GitHub ↗

* Returns whether a `vectra.keys` file exists for the index.

()

Source from the content-addressed store, hash-verified

165 * Returns whether a `vectra.keys` file exists for the index.
166 */
167 hasKeys() {
168 return __awaiter(this, void 0, void 0, function* () {
169 return yield fs.stat(path.join(this.folderPath, 'vectra.keys')).then(() => true).catch(() => false);
170 });
171 }
172 /**
173 * Returns true if the index has been created.
174 */

Callers 4

queryMethod · 0.95
rebuildMethod · 0.95
upsertDocumentMethod · 0.95
runFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected