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

Function Java_java_io_File_canWrite

classpath/java-io.cpp:419–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417}
418
419extern "C" JNIEXPORT jboolean JNICALL
420 Java_java_io_File_canWrite(JNIEnv* e, jclass, jstring path)
421{
422 string_t chars = getChars(e, path);
423 if (chars) {
424 int r = ACCESS(chars, W_OK);
425 releaseChars(e, path, chars);
426 return (r == 0);
427 }
428 return false;
429}
430
431extern "C" JNIEXPORT jboolean JNICALL
432 Java_java_io_File_canExecute(JNIEnv* e, jclass, jstring path)

Callers

nothing calls this directly

Calls 2

getCharsFunction · 0.85
releaseCharsFunction · 0.85

Tested by

no test coverage detected