Skip to content

Commit 47e7eb6

Browse files
committed
🐛 Fixes #94 - Check if file exists when backing up Portal or Inventory
1 parent 8593335 commit 47e7eb6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/services/base/fileService.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ class FileService {
3030
}
3131

3232
getLog().d('save file to: ' + outputFile);
33-
download(stream, outputFile);
33+
await download(stream, outputFile);
34+
35+
File file = File(outputFile);
36+
await file.readAsString(); // Try read the file to ensure it exists
3437

3538
return Result(true, '');
3639
} catch (ex) {

release_notes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- Bugfix for platform detection in AssistantApps update checker
22
- Added The Lore and Plot of NMS by PhinoxDragon
33
- Added Portal conversion page
4+
- Better handling of Portal & Inventory backup
45

56
_Submitted to App Stores 2022-09-08_
67

0 commit comments

Comments
 (0)