mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-18 17:33:03 +08:00
Implement note deletion
It looks quite ugly, but it works.
This commit is contained in:
@ -37,7 +37,8 @@ class FileStorage {
|
||||
|
||||
Future<Directory> saveNotes(List<Note> notes) async {
|
||||
final dir = await getDirectory();
|
||||
//await dir.delete(recursive: true);
|
||||
await dir.delete(recursive: true);
|
||||
await dir.create();
|
||||
|
||||
for (var note in notes) {
|
||||
var filePath = p.join(dir.path, note.id);
|
||||
|
Reference in New Issue
Block a user