Files
GitJournal/lib/core/folder/notes_folder.dart
Vishesh Handa e1ea7a4953 Fetch the modified + created time from git
Fixes #78

This is probably the largest commit that I have ever made. From now on -
every File always has an mtime and ctime which is fetched from git.
Notes can optionally override that time by providing yaml metadata.

Additionally the 'filePath' and 'folderPath' is now relative to the
repoPath instead of being the full path.

This will slow down GitJournal like crazy as all the mtimes and ctime
still need to be cached. For my test repo it takes about 23 seconds for
GitJournal to become responsive.
2021-10-26 17:49:08 +02:00

26 lines
552 B
Dart

/*
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import '../note.dart';
import 'notes_folder_config.dart';
import 'notes_folder_notifier.dart';
export 'notes_folder_config.dart';
abstract class NotesFolder implements NotesFolderNotifier {
bool get isEmpty;
bool get hasNotes;
String get name;
String get publicName;
List<Note> get notes;
List<NotesFolder> get subFolders;
NotesFolder? get parent;
NotesFolder? get fsFolder;
NotesFolderConfig get config;
}