diff --git a/src/main/java/org/janelia/saalfeldlab/n5/N5Reader.java b/src/main/java/org/janelia/saalfeldlab/n5/N5Reader.java index 0377d74..010e757 100644 --- a/src/main/java/org/janelia/saalfeldlab/n5/N5Reader.java +++ b/src/main/java/org/janelia/saalfeldlab/n5/N5Reader.java @@ -565,10 +565,9 @@ default String[] deepList( final LinkedBlockingQueue> 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())); }