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

Function exists

classpath/java-io.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129#endif
130
131inline bool exists(string_t path)
132{
133#ifdef PLATFORM_WINDOWS
134 return GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES;
135#else
136 STRUCT_STAT s;
137 return STAT(path, &s) == 0;
138#endif
139}
140
141inline int doOpen(JNIEnv* e, string_t path, int mask)
142{

Callers 3

Java_java_io_File_mkdirFunction · 0.85
Java_java_io_File_existsFunction · 0.85

Calls 1

STATClass · 0.85

Tested by

no test coverage detected