mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
JNI mkdirs
This commit is contained in:
@@ -2645,7 +2645,7 @@ public class Helper {
|
||||
parent.mkdir();
|
||||
|
||||
File dir = new File(parent, subdir);
|
||||
dir.mkdir();
|
||||
Log.jni_safe_mkdirs(dir);
|
||||
|
||||
synchronized (exists) {
|
||||
if (exists.containsKey(dir))
|
||||
|
||||
@@ -245,6 +245,8 @@ public class Log {
|
||||
|
||||
public static native void jni_safe_write(OutputStream os, byte[] data);
|
||||
|
||||
public static native boolean jni_safe_mkdirs(File file);
|
||||
|
||||
public static native long[] jni_safe_runtime_stats();
|
||||
|
||||
public static void setLevel(Context context) {
|
||||
@@ -403,7 +405,6 @@ public class Log {
|
||||
return t.toSafeString() + "\n" + t.getSafeStackTraceString();
|
||||
}
|
||||
|
||||
|
||||
public static void persist(EntityLog.Type type, String message) {
|
||||
if (ctx == null)
|
||||
Log.e(message);
|
||||
@@ -1932,6 +1933,8 @@ public class Log {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
Log.jni_safe_mkdirs(new File(context.getFilesDir(), "testing"));
|
||||
|
||||
ServiceSynchronize.eval(context, "debuginfo");
|
||||
|
||||
return draft;
|
||||
|
||||
Reference in New Issue
Block a user