From a92d5f624443d62fdee0be401ac26a28cfa9775a Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 13 Feb 2022 08:25:18 +0100 Subject: [PATCH] Make sure external folder exists --- app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index f60343a788..71b43c6ec3 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -815,6 +815,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc source = new File(source, "attachments"); target = new File(target, "attachments"); + source.mkdirs(); + target.mkdirs(); + File[] attachments = source.listFiles(); if (attachments != null) for (File attachment : attachments) {