Improve created app file system structure on ios

This commit is contained in:
Anton Stubenbord
2023-02-14 22:46:26 +01:00
parent 42dbaaf855
commit ae31f59aa1
2 changed files with 13 additions and 3 deletions

View File

@@ -91,6 +91,7 @@ class _DocumentDownloadButtonState extends State<DocumentDownloadButton> {
final createdFile = File(filePath);
createdFile.createSync(recursive: true);
createdFile.writeAsBytesSync(bytes);
debugPrint("Downloaded file to $filePath");
showSnackBar(context, S.of(context).documentDownloadSuccessMessage);
} on PaperlessServerException catch (error, stackTrace) {
showErrorMessage(context, error, stackTrace);