Skip to content

Commit

Permalink
fix: dir_entry_view::name() for root entry should be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 23, 2024
1 parent 27f04a6 commit 8c8e646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/reader/internal/metadata_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ std::string dir_entry_view_impl::name() const {
return "..";
}

if (is_root()) {
return {};
}

return v_ |
match{
[this](DirEntryView const& dev) {
Expand Down

0 comments on commit 8c8e646

Please sign in to comment.