Skip to content

Commit

Permalink
🐛 Fixes #94 - Check if file exists when backing up Portal or Inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaoz-Topsy committed Sep 8, 2022
1 parent 8593335 commit 47e7eb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/services/base/fileService.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ class FileService {
}

getLog().d('save file to: ' + outputFile);
download(stream, outputFile);
await download(stream, outputFile);

File file = File(outputFile);
await file.readAsString(); // Try read the file to ensure it exists

return Result(true, '');
} catch (ex) {
Expand Down
1 change: 1 addition & 0 deletions release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- Bugfix for platform detection in AssistantApps update checker
- Added The Lore and Plot of NMS by PhinoxDragon
- Added Portal conversion page
- Better handling of Portal & Inventory backup

_Submitted to App Stores 2022-09-08_

Expand Down

0 comments on commit 47e7eb6

Please sign in to comment.