MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / getDirectory

Method getDirectory

src/helper.cpp:463–466  ·  view source on GitHub ↗

* Returns the directory part of a path: e.g. "/a/b/" from "/a/b/file.csv" */

Source from the content-addressed store, hash-verified

461 * Returns the directory part of a path: e.g. "/a/b/" from "/a/b/file.csv"
462 */
463std::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>:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected