* Returns the filename of a path: e.g. "file.csv" from "/a/b/file.csv" */
| 453 | * Returns the filename of a path: e.g. "file.csv" from "/a/b/file.csv" |
| 454 | */ |
| 455 | std::string Helper::getBasename(const std::string& path) { |
| 456 | size_t found = path.find_last_of("/\\"); |
| 457 | return(path.substr(found+1)); |
| 458 | } |
| 459 | |
| 460 | /* |
| 461 | * Returns the directory part of a path: e.g. "/a/b/" from "/a/b/file.csv" |
nothing calls this directly
no outgoing calls
no test coverage detected