man
This commit is contained in:
@@ -59,7 +59,7 @@ ssize_t readFile(const std::string path, char* buffer, size_t maxlen) {
|
|||||||
return readFile(path.c_str(), buffer, maxlen);
|
return readFile(path.c_str(), buffer, maxlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* finds first dir in path and returns it*/
|
/* finds first dir in path and returns it */
|
||||||
std::string getFirstDir(std::string_view path) {
|
std::string getFirstDir(std::string_view path) {
|
||||||
for (const auto& entry : std::filesystem::directory_iterator(path))
|
for (const auto& entry : std::filesystem::directory_iterator(path))
|
||||||
return entry.path();
|
return entry.path();
|
||||||
|
|||||||
Reference in New Issue
Block a user