Skip to content

Commit

Permalink
Merge pull request #42588 from gsmet/use-open-roots
Browse files Browse the repository at this point in the history
Use the root path for OpenContainerPathTree#getRoots()
  • Loading branch information
gsmet authored Aug 16, 2024
2 parents ae01258 + 6dd6150 commit d42baa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public OpenPathTree open() {

@Override
public Collection<Path> getRoots() {
return List.of(getContainerPath());
return List.of(getRootPath());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ static PathTree ofArchive(Path archive, PathFilter filter) {
/**
* The roots of the path tree.
* <p>
* Note that for archives, it will return the path to the archive itself,
* not a path that you can browse.
* Note that you shouldn't use these roots for browsing except if the PathTree is open.
*
* @return roots of the path tree
*/
Expand Down

0 comments on commit d42baa5

Please sign in to comment.