mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 15:54:35 +01:00
opt.: icloud sync (#187)
This commit is contained in:
@@ -46,7 +46,9 @@ abstract final class Paths {
|
||||
return _fontDir!;
|
||||
}
|
||||
|
||||
static Future<String> get bak async => '${await doc}/srvbox_bak.json';
|
||||
static const String bakName = 'srvbox_bak.json';
|
||||
|
||||
static Future<String> get bak async => '${await doc}/$bakName';
|
||||
|
||||
static Future<String> get dl async => joinPath(await doc, 'dl');
|
||||
}
|
||||
|
||||
@@ -23,4 +23,15 @@ abstract final class Stores {
|
||||
key,
|
||||
snippet,
|
||||
];
|
||||
|
||||
static int? get lastModTime {
|
||||
int? lastModTime = 0;
|
||||
for (final store in all) {
|
||||
final last = store.box.lastModified ?? 0;
|
||||
if (last > (lastModTime ?? 0)) {
|
||||
lastModTime = last;
|
||||
}
|
||||
}
|
||||
return lastModTime;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user