MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / openToFile

Method openToFile

chat/components/MemoryEditor.js:55–62  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

53 this.memoryOperationGeneration = 0;
54 this.memoryOperationAbortControllers = new Set();
55 }
56
57 async openToFile(path) {
58 if (!path) return;
59 const dir = path.indexOf('/') !== -1 ? path.slice(0, path.indexOf('/')) : null;
60 if (dir) this.expandedDirs.add(dir);
61 const opened = await this.open();
62 if (!opened) return;
63 await this._selectFile(path);
64 }
65

Callers 1

setupEventListenersMethod · 0.80

Calls 2

openMethod · 0.95
_selectFileMethod · 0.95

Tested by

no test coverage detected