MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / GetPathRoot

Function GetPathRoot

Goldleaf/include/fs/fs_Common.hpp:83–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 inline std::string GetPathRoot(const std::string &path) {
84 return path.substr(0, path.find_first_of(":"));
85 }
86
87 inline std::string GetPathWithoutRoot(const std::string &path) {
88 return path.substr(path.find_first_of(":") + 1);

Callers 2

GetRemotePCExplorerFunction · 0.85
GetExplorerForPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected