MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / dir_exists

Method dir_exists

platform/android/dir_access_jandroid.cpp:208–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208bool DirAccessJAndroid::dir_exists(String p_dir) {
209 if (_dir_exists) {
210 JNIEnv *env = get_jni_env();
211 ERR_FAIL_NULL_V(env, false);
212
213 String path = get_absolute_path(p_dir);
214 jstring j_path = env->NewStringUTF(path.utf8().get_data());
215 bool result = env->CallBooleanMethod(dir_access_handler, _dir_exists, get_access_type(), j_path);
216 env->DeleteLocalRef(j_path);
217 return result;
218 } else {
219 return false;
220 }
221}
222
223Error DirAccessJAndroid::make_dir(String p_dir) {
224 // Check if the directory exists already

Callers 7

runMethod · 0.45
runMethod · 0.45
move_to_trashMethod · 0.45
_copy_and_sign_filesMethod · 0.45
runMethod · 0.45
_export_projectMethod · 0.45

Calls 3

get_jni_envFunction · 0.85
get_dataMethod · 0.45
utf8Method · 0.45

Tested by

no test coverage detected