| 346 | } |
| 347 | |
| 348 | extern "C" JNIEXPORT void JNICALL |
| 349 | Java_java_io_File_mkdir(JNIEnv* e, jclass, jstring path) |
| 350 | { |
| 351 | string_t chars = getChars(e, path); |
| 352 | if (chars) { |
| 353 | if (not exists(chars)) { |
| 354 | int r = ::MKDIR(chars, 0777); |
| 355 | if (r != 0) { |
| 356 | throwNewErrno(e, "java/io/IOException"); |
| 357 | } |
| 358 | } |
| 359 | releaseChars(e, path, chars); |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | extern "C" JNIEXPORT jboolean JNICALL |
| 364 | Java_java_io_File_createNewFile(JNIEnv* e, jclass, jstring path) |
nothing calls this directly
no test coverage detected