MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / isRoot

Function isRoot

core/filetools.cpp:431–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429 }
430
431 bool isRoot(const std::string &spath)
432 {
433 if (spath.empty()) return false;
434 fs::path p(spath);
435 std::string s1 = p.string();
436 std::string s2 = p.root_path().string();
437 return (s1 == s2);
438 }
439
440 bool isUNCPath(const std::string &spath)
441 {

Callers 7

upOneLevelFunction · 0.85
upMultipleLevelsFunction · 0.85
extractFilePathFunction · 0.85
extractFileNameFunction · 0.85
changeExtensionFunction · 0.85
changeBaseNameFunction · 0.85
changePathFunction · 0.85

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected