1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

chore(mobile): handle delete file error (#5827)

This commit is contained in:
Alex 2023-12-18 09:54:42 -06:00 committed by GitHub
parent 3beeffaaf0
commit ffc31f034c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()}");
}
}
}
}