| 517 | } |
| 518 | |
| 519 | extern "C" JNIEXPORT jboolean JNICALL |
| 520 | Java_java_io_File_isDirectory(JNIEnv* e, jclass, jstring path) |
| 521 | { |
| 522 | string_t chars = getChars(e, path); |
| 523 | if (chars) { |
| 524 | STRUCT_STAT s; |
| 525 | int r = STAT(chars, &s); |
| 526 | bool v = (r == 0 and S_ISDIR(s.st_mode)); |
| 527 | releaseChars(e, path, chars); |
| 528 | return v; |
| 529 | } else { |
| 530 | return false; |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | extern "C" JNIEXPORT jboolean JNICALL |
| 535 | Java_java_io_File_isFile(JNIEnv* e, jclass, jstring path) |
nothing calls this directly
no test coverage detected