mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: mark sftp mission as completed when dispose
This commit is contained in:
@@ -103,6 +103,7 @@ class ICloud {
|
||||
final errs = <ICloudErr>[];
|
||||
|
||||
final allFiles = await getAll();
|
||||
|
||||
/// remove files not in relativePaths
|
||||
allFiles.removeWhere((e) => !relativePaths.contains(e.relativePath));
|
||||
|
||||
@@ -121,6 +122,7 @@ class ICloud {
|
||||
}));
|
||||
|
||||
final docPath = await docDir;
|
||||
|
||||
/// compare files in iCloud and local
|
||||
mission.addAll(allFiles.map((file) async {
|
||||
final relativePath = file.relativePath;
|
||||
|
||||
Reference in New Issue
Block a user