Skip to content

Commit

Permalink
Make match exact
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Oct 9, 2024
1 parent bd86cc6 commit 10dac6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/silo/preprocessing/preprocessing_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ ZstdTable PreprocessingDatabase::generateSequenceTableViaFile(
) {
const auto file_stem = file_path.stem().string();
for (const auto& entry : std::filesystem::directory_iterator(file_path.parent_path())) {
const auto entry_stem = entry.path().stem().string();
const auto entry_file_name = entry.path().filename().string();
if (!entry.is_regular_file() || !entry_file_name.starts_with(file_stem)) {
if (!entry.is_regular_file() || entry_stem != file_stem) {
continue;
}
auto extensions = splitBy(entry_file_name, ".");
Expand Down

0 comments on commit 10dac6e

Please sign in to comment.