MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / fileDirectory

Method fileDirectory

KittyMemoryEx/KittyUtils.cpp:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 std::string Path::fileDirectory(const std::string &filePath)
131 {
132 std::string directory;
133 const size_t last_slash_idx = filePath.find_last_of("/\\");
134 if (std::string::npos != last_slash_idx)
135 directory = filePath.substr(0, last_slash_idx);
136 return directory;
137 }
138
139 std::string Path::fileExtension(const std::string &filePath)
140 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected