Make sure external folder exists

This commit is contained in:
M66B 2022-02-13 08:25:18 +01:00
parent b9db0f7405
commit a92d5f6244
1 changed files with 3 additions and 0 deletions

View File

@ -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) {