Make sure external folder exists

pull/194/merge
M66B 3 years ago
parent b9db0f7405
commit a92d5f6244

@ -815,6 +815,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
source = new File(source, "attachments"); source = new File(source, "attachments");
target = new File(target, "attachments"); target = new File(target, "attachments");
source.mkdirs();
target.mkdirs();
File[] attachments = source.listFiles(); File[] attachments = source.listFiles();
if (attachments != null) if (attachments != null)
for (File attachment : attachments) { for (File attachment : attachments) {

Loading…
Cancel
Save