diff --git a/src/main/java/org/janelia/saalfeldlab/n5/zarr/ZarrKeyValueReader.java b/src/main/java/org/janelia/saalfeldlab/n5/zarr/ZarrKeyValueReader.java index e35dec3..21c6fb7 100644 --- a/src/main/java/org/janelia/saalfeldlab/n5/zarr/ZarrKeyValueReader.java +++ b/src/main/java/org/janelia/saalfeldlab/n5/zarr/ZarrKeyValueReader.java @@ -619,7 +619,8 @@ public JsonElement getAttributesFromContainer( final String normalResourcePath) throws N5Exception { final String absolutePath = keyValueAccess.compose(uri, normalResourceParent, normalResourcePath); - if (!keyValueAccess.exists(absolutePath)) + + if (!keyValueAccess.isFile(absolutePath)) return null; try (final LockedChannel lockedChannel = keyValueAccess.lockForReading(absolutePath)) {