Skip to content

Commit

Permalink
Treat empty delimiter as if it is not specified
Browse files Browse the repository at this point in the history
Found by s3-tests.  References #697.
  • Loading branch information
gaul committed Nov 24, 2024
1 parent b0e119a commit e598a83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/gaul/s3proxy/nio2blob/Nio2BlobStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ public PageSet<? extends StorageMetadata> list(String container,
}

var delimiter = options.getDelimiter();
if (delimiter != null && !delimiter.equals("/")) {
if ("".equals(delimiter)) {
delimiter = null;
} else if (delimiter != null && !delimiter.equals("/")) {
throw new IllegalArgumentException("Delimiters other than / not supported");
}

Expand Down

0 comments on commit e598a83

Please sign in to comment.