update to new sdk
This commit is contained in:
@@ -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`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user