| 80 | #endif |
| 81 | |
| 82 | std::string ParentDir(const std::string& path) { |
| 83 | std::string::size_type pos = path.find_last_of("/\\"); |
| 84 | if (pos == std::string::npos) { |
| 85 | return ""; |
| 86 | } |
| 87 | return path.substr(0, pos + 1); |
| 88 | } |
| 89 | |
| 90 | bool IsRegularFile(const std::string& path) { |
| 91 | #if defined(_WIN32) || defined(_WIN64) |
no test coverage detected