| 417 | } |
| 418 | |
| 419 | extern "C" JNIEXPORT jboolean JNICALL |
| 420 | Java_java_io_File_canWrite(JNIEnv* e, jclass, jstring path) |
| 421 | { |
| 422 | string_t chars = getChars(e, path); |
| 423 | if (chars) { |
| 424 | int r = ACCESS(chars, W_OK); |
| 425 | releaseChars(e, path, chars); |
| 426 | return (r == 0); |
| 427 | } |
| 428 | return false; |
| 429 | } |
| 430 | |
| 431 | extern "C" JNIEXPORT jboolean JNICALL |
| 432 | Java_java_io_File_canExecute(JNIEnv* e, jclass, jstring path) |
nothing calls this directly
no test coverage detected