mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(mobile): handle delete file error (#5827)
This commit is contained in:
parent
3beeffaaf0
commit
ffc31f034c
1 changed files with 6 additions and 2 deletions
|
|
@ -394,8 +394,12 @@ class BackupService {
|
||||||
continue;
|
continue;
|
||||||
} finally {
|
} finally {
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
file?.deleteSync();
|
try {
|
||||||
livePhotoFile?.deleteSync();
|
await file?.delete();
|
||||||
|
await livePhotoFile?.delete();
|
||||||
|
} catch (e) {
|
||||||
|
debugPrint("ERROR deleting file: ${e.toString()}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue