| 100 | } |
| 101 | |
| 102 | size_t Utils::getFileSize(const std::string& file) |
| 103 | { |
| 104 | FILE* f = fopen(file.c_str(), "rb"); |
| 105 | |
| 106 | if (!f) |
| 107 | return 0; |
| 108 | |
| 109 | fseek(f, 0, SEEK_END); |
| 110 | size_t s = ftell(f); |
| 111 | |
| 112 | fclose(f); |
| 113 | |
| 114 | return s; |
| 115 | } |
| 116 | |
| 117 | std::string Utils::getCaseSensitivePath(const std::string& caseInsensitivePath, const std::string& prePath) |
| 118 | { |
nothing calls this directly
no outgoing calls
no test coverage detected