| 128 | } |
| 129 | |
| 130 | std::string Path::fileDirectory(const std::string &filePath) |
| 131 | { |
| 132 | std::string directory; |
| 133 | const size_t last_slash_idx = filePath.find_last_of("/\\"); |
| 134 | if (std::string::npos != last_slash_idx) |
| 135 | directory = filePath.substr(0, last_slash_idx); |
| 136 | return directory; |
| 137 | } |
| 138 | |
| 139 | std::string Path::fileExtension(const std::string &filePath) |
| 140 | { |
nothing calls this directly
no outgoing calls
no test coverage detected