* Returns the directory part of a path: e.g. "/a/b/" from "/a/b/file.csv" */
| 461 | * Returns the directory part of a path: e.g. "/a/b/" from "/a/b/file.csv" |
| 462 | */ |
| 463 | std::string Helper::getDirectory(const std::string& path) { |
| 464 | size_t found = path.find_last_of("/\\"); |
| 465 | return(path.substr(0, found)); |
| 466 | } |
| 467 | |
| 468 | /* |
| 469 | * Returns the <path without an extension,extension>: |
nothing calls this directly
no outgoing calls
no test coverage detected