MCPcopy Create free account
hub / github.com/cyrusbehr/tensorrt-cpp-api / getFilesInDirectory

Method getFilesInDirectory

src/engine.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace Util;
11
12std::vector<std::string> Util::getFilesInDirectory(const std::string &dirPath) {
13 std::vector<std::string> filepaths;
14 for (const auto &entry : std::filesystem::directory_iterator(dirPath)) {
15 filepaths.emplace_back(entry.path().string());
16 }
17 return filepaths;
18}
19
20void Logger::log(Severity severity, const char *msg) noexcept {
21 // Would advise using a proper logging utility such as

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected