| 129 | #endif |
| 130 | |
| 131 | inline 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 | |
| 141 | inline int doOpen(JNIEnv* e, string_t path, int mask) |
| 142 | { |
no test coverage detected