update to new sdk

This commit is contained in:
nicwands
2026-03-24 13:56:52 -04:00
parent 406f8ddb74
commit f1c19d453a
4 changed files with 14 additions and 31 deletions

View File

@@ -45,6 +45,15 @@ export default class FileSystemAdapter extends BaseNotesAdapter {
await fs.unlink(filePath)
}
async testConnection() {
try {
await fs.access(this.notesDir)
return true
} catch (error) {
return false
}
}
async _write(note) {
const filePath = path.join(this.notesDir, `${note.id}.json`)