Skip to content

Commit

Permalink
Fix rel/abs issue in createclusearchdb
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jul 31, 2023
1 parent 9ae4458 commit 76b7df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/createclusterdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ int createclusearchdb(int argc, const char **argv, const Command& command) {
}
for (size_t i = 0; i < ARRAY_SIZE(suffices); ++i) {
std::string file = par.db3 + suffices[i].suffix;
std::string fileBasename = FileUtil::baseName(file);
if (suffices[i].flag && FileUtil::fileExists(file.c_str())) {
DBReader<unsigned int>::aliasDb(file, par.db3 + "_seq" + suffices[i].suffix);
DBReader<unsigned int>::aliasDb(fileBasename, par.db3 + "_seq" + suffices[i].suffix);
}
}
return EXIT_SUCCESS;
Expand Down

0 comments on commit 76b7df1

Please sign in to comment.