| 405 | } |
| 406 | |
| 407 | extern "C" JNIEXPORT jboolean JNICALL |
| 408 | Java_java_io_File_canRead(JNIEnv* e, jclass, jstring path) |
| 409 | { |
| 410 | string_t chars = getChars(e, path); |
| 411 | if (chars) { |
| 412 | int r = ACCESS(chars, R_OK); |
| 413 | releaseChars(e, path, chars); |
| 414 | return (r == 0); |
| 415 | } |
| 416 | return false; |
| 417 | } |
| 418 | |
| 419 | extern "C" JNIEXPORT jboolean JNICALL |
| 420 | Java_java_io_File_canWrite(JNIEnv* e, jclass, jstring path) |
nothing calls this directly
no test coverage detected