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

Method remove

platform/android/dir_access_jandroid.cpp:279–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279Error DirAccessJAndroid::remove(String p_name) {
280 if (_remove) {
281 JNIEnv *env = get_jni_env();
282 ERR_FAIL_NULL_V(env, ERR_UNCONFIGURED);
283
284 String path = get_absolute_path(p_name);
285 jstring j_name = env->NewStringUTF(path.utf8().get_data());
286 bool result = env->CallBooleanMethod(dir_access_handler, _remove, get_access_type(), j_name);
287 env->DeleteLocalRef(j_name);
288 if (result) {
289 return OK;
290 } else {
291 return FAILED;
292 }
293 } else {
294 return ERR_UNCONFIGURED;
295 }
296}
297
298uint64_t DirAccessJAndroid::get_space_left() {
299 if (_get_space_left) {

Callers 12

spawn_captureFunction · 0.45
export_projectMethod · 0.45
export_plugin.cppFile · 0.45
export_projectMethod · 0.45
copy_dynamic_libraryMethod · 0.45
move_to_trashMethod · 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