mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Ensure exists directory
This commit is contained in:
@@ -1108,11 +1108,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
? context.getExternalFilesDir(null)
|
||||
: context.getFilesDir());
|
||||
|
||||
source = new File(source, "attachments");
|
||||
target = new File(target, "attachments");
|
||||
|
||||
source.mkdirs();
|
||||
target.mkdirs();
|
||||
source = Helper.ensureExists(new File(source, "attachments"));
|
||||
target = Helper.ensureExists(new File(target, "attachments"));
|
||||
|
||||
File[] attachments = source.listFiles();
|
||||
if (attachments != null)
|
||||
|
||||
Reference in New Issue
Block a user