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

Function Java_java_io_File_isDirectory

classpath/java-io.cpp:519–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519extern "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
534extern "C" JNIEXPORT jboolean JNICALL
535 Java_java_io_File_isFile(JNIEnv* e, jclass, jstring path)

Callers

nothing calls this directly

Calls 3

getCharsFunction · 0.85
STATClass · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected