Add versioning to RAS data schemas
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: Ie1688f748fe70d40bee4c88160cb20b7d36d3033
diff --git a/util/data_file.cpp b/util/data_file.cpp
index 14266ca..5bc8c7d 100644
--- a/util/data_file.cpp
+++ b/util/data_file.cpp
@@ -19,8 +19,8 @@
std::regex search{i_matchString};
for (const auto& file : fs::directory_iterator(i_dirPath))
{
- std::string path = file.path().string();
- if (std::regex_search(path, search))
+ std::string filename = file.path().filename().string();
+ if (std::regex_search(filename, search))
{
o_foundPaths.emplace_back(file.path());
}