MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / save

Method save

src/common/configParser.ts:227–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 }
226
227 save() {
228 writeFileSync(this.file, JSON.stringify(this.getConfig2Save(), null, 4));
229 const now = Date.now();
230 if (now > this.lastSave) {
231 this.lastSave = now;
232 }
233 }
234
235 private updateSnapshots(snapshots: ConfigSnapshots) {
236 this.set("configSnapshots", snapshots);

Callers 4

setMethod · 0.95
loadMethod · 0.95
restoreDefaultMethod · 0.95
onExitMethod · 0.80

Calls 1

getConfig2SaveMethod · 0.95

Tested by

no test coverage detected