| 393 | } |
| 394 | |
| 395 | unsigned int getFileLen(const char* file) { |
| 396 | if (!file) { |
| 397 | return 0; |
| 398 | } |
| 399 | |
| 400 | FILE* fp = fopen(convertPathToDelims(file).c_str(), "rb"); |
| 401 | if (!fp) { |
| 402 | return 0; |
| 403 | } |
| 404 | |
| 405 | fseek(fp, 0, SEEK_END); |
| 406 | unsigned int i = (unsigned int)ftell(fp); |
| 407 | fclose(fp); |
| 408 | |
| 409 | return i; |
| 410 | } |
| 411 | |
| 412 | bool fileExists(const char* path) { |
| 413 | if (!path) { |
nothing calls this directly
no test coverage detected