| 130 | } |
| 131 | |
| 132 | bool existFile(const std::string& filePath) |
| 133 | { |
| 134 | try |
| 135 | { |
| 136 | if (auto* file = fopen(filePath.c_str(), "r")) |
| 137 | { |
| 138 | fclose(file); |
| 139 | return true; |
| 140 | } |
| 141 | else |
| 142 | return false; |
| 143 | } |
| 144 | catch (const std::exception& e) |
| 145 | { |
| 146 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 147 | return false; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | std::string formatAsDirectory(const std::string& directoryPathString) |
| 152 | { |
no test coverage detected