MCPcopy Create free account
hub / github.com/ReadyTalk/avian / Java_java_io_File_mkdir

Function Java_java_io_File_mkdir

classpath/java-io.cpp:348–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348extern "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
363extern "C" JNIEXPORT jboolean JNICALL
364 Java_java_io_File_createNewFile(JNIEnv* e, jclass, jstring path)

Callers

nothing calls this directly

Calls 4

getCharsFunction · 0.85
existsFunction · 0.85
throwNewErrnoFunction · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected