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

Function Java_java_io_File_canRead

classpath/java-io.cpp:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407extern "C" JNIEXPORT jboolean JNICALL
408 Java_java_io_File_canRead(JNIEnv* e, jclass, jstring path)
409{
410 string_t chars = getChars(e, path);
411 if (chars) {
412 int r = ACCESS(chars, R_OK);
413 releaseChars(e, path, chars);
414 return (r == 0);
415 }
416 return false;
417}
418
419extern "C" JNIEXPORT jboolean JNICALL
420 Java_java_io_File_canWrite(JNIEnv* e, jclass, jstring path)

Callers

nothing calls this directly

Calls 2

getCharsFunction · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected