Skip to content

Commit

Permalink
chore(mobile): handle delete file error (#5827)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Dec 18, 2023
1 parent 3beeffa commit ffc31f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mobile/lib/modules/backup/services/backup.service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,12 @@ class BackupService {
continue;
} finally {
if (Platform.isIOS) {
file?.deleteSync();
livePhotoFile?.deleteSync();
try {
await file?.delete();
await livePhotoFile?.delete();
} catch (e) {
debugPrint("ERROR deleting file: ${e.toString()}");
}
}
}
}
Expand Down

0 comments on commit ffc31f0

Please sign in to comment.