Skip to content

Commit

Permalink
Merge pull request #134 from saalfeldlab/fix/firstDeepListResult
Browse files Browse the repository at this point in the history
fix: assumption that the first deepListHelper result is always self
  • Loading branch information
cmhulbert authored Dec 17, 2024
2 parents afd3a95 + d0e24ba commit d802c62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/janelia/saalfeldlab/n5/N5Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,9 @@ default String[] deepList(
final LinkedBlockingQueue<Future<String>> datasetFutures = new LinkedBlockingQueue<>();
deepListHelper(this, normalPathName, false, filter, executor, datasetFutures);

datasetFutures.poll().get(); // skip self
while (!datasetFutures.isEmpty()) {
final String result = datasetFutures.poll().get();
if (result != null)
if (result != null && !result.equals(normalPathName))
results.add(result.substring(normalPathName.length() + groupSeparator.length()));
}

Expand Down

0 comments on commit d802c62

Please sign in to comment.