| 277 | } |
| 278 | |
| 279 | Error 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 | |
| 298 | uint64_t DirAccessJAndroid::get_space_left() { |
| 299 | if (_get_space_left) { |
no test coverage detected