mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Ensure exists directory
This commit is contained in:
@@ -511,10 +511,7 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
if (TextUtils.isEmpty(fname))
|
||||
return uri;
|
||||
|
||||
File dir = new File(getFilesDir(), "shared");
|
||||
if (!dir.exists())
|
||||
dir.mkdir();
|
||||
|
||||
File dir = Helper.ensureExists(new File(getFilesDir(), "shared"));
|
||||
File file = new File(dir, fname);
|
||||
|
||||
Log.i("Copying shared file to " + file);
|
||||
|
||||
Reference in New Issue
Block a user