From 47e7eb6264a15cfeafe32b8d8ced22878c853b17 Mon Sep 17 00:00:00 2001 From: Kurt Lourens Date: Thu, 8 Sep 2022 12:38:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixes=20#94=20-=20Check=20if=20f?= =?UTF-8?q?ile=20exists=20when=20backing=20up=20Portal=20or=20Inventory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/services/base/fileService.dart | 5 ++++- release_notes.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/services/base/fileService.dart b/lib/services/base/fileService.dart index 02ca0cd5..7b6f43d2 100644 --- a/lib/services/base/fileService.dart +++ b/lib/services/base/fileService.dart @@ -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) { diff --git a/release_notes.txt b/release_notes.txt index 147aba59..547e9390 100644 --- a/release_notes.txt +++ b/release_notes.txt @@ -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_