MCPcopy
hub / github.com/coder/mux / removeKeys

Method removeKeys

src/node/services/memoryMeta.ts:232–238  ·  view source on GitHub ↗

* Drop all entries for a deleted file or directory subtree so a future file * at the same path never resurrects stale pins or stats.

(logicalKey: string)

Source from the content-addressed store, hash-verified

230 * at the same path never resurrects stale pins or stats.
231 */
232 async removeKeys(logicalKey: string): Promise<void> {
233 await this.mutate((entries) => {
234 for (const key of Object.keys(entries)) {
235 if (keyInSubtree(key, logicalKey)) delete entries[key];
236 }
237 });
238 }
239}

Callers 2

memoryMeta.test.tsFile · 0.80
recordDeleteMethod · 0.80

Calls 2

mutateMethod · 0.95
keyInSubtreeFunction · 0.85

Tested by

no test coverage detected