(data: FSRSStorage)
| 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`; |
nothing calls this directly
no test coverage detected