fix: mark sftp mission as completed when dispose

This commit is contained in:
lollipopkit
2023-09-12 13:26:14 +08:00
parent 730a62831b
commit 700322c603
8 changed files with 56 additions and 37 deletions

View File

@@ -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;