MCPcopy Create free account
hub / github.com/CatMuse/HiNote / save

Method save

src/storage/FlashcardDataStore.ts:29–31  ·  view source on GitHub ↗
(data: FSRSStorage)

Source from the content-addressed store, hash-verified

27 }
28
29 async save(data: FSRSStorage): Promise<void> {
30 await this.app.vault.adapter.write(this.getFlashcardPath(), JSON.stringify(data, null, 2));
31 }
32
33 private getFlashcardPath(): string {
34 return `${FilePathUtils.getFlashcardsDir(this.vaultPath)}/cards.json`;

Callers

nothing calls this directly

Calls 1

getFlashcardPathMethod · 0.95

Tested by

no test coverage detected