From 45736c763a55a4c44917a9dcc532f60b462b8510 Mon Sep 17 00:00:00 2001 From: David Gault Date: Fri, 10 May 2024 16:09:17 +0100 Subject: [PATCH] JZarrServiceImpl: Correct protocol check --- src/loci/formats/services/JZarrServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loci/formats/services/JZarrServiceImpl.java b/src/loci/formats/services/JZarrServiceImpl.java index b59daf5..731a6b8 100644 --- a/src/loci/formats/services/JZarrServiceImpl.java +++ b/src/loci/formats/services/JZarrServiceImpl.java @@ -82,7 +82,7 @@ public JZarrServiceImpl(String root) { checkClassDependency(com.bc.zarr.ZarrArray.class); if (root != null && (root.toLowerCase().contains("s3:") || root.toLowerCase().contains("s3."))) { String[] pathSplit = root.toString().split(File.separator); - if (!S3FileSystemStore.ENDPOINT_PROTOCOL.contains(pathSplit[0].toLowerCase())) { + if (S3FileSystemStore.ENDPOINT_PROTOCOL.contains(pathSplit[0].toLowerCase())) { s3fs = new S3FileSystemStore(Paths.get(root)); } else {