S3 storage: that should be commonPrefixes, whoops

This commit is contained in:
Skye 2024-02-23 18:01:58 +09:00
parent 68aeaa65e5
commit 09473e7b72
No known key found for this signature in database
GPG Key ID: 0104BC05F41B77B8
1 changed files with 2 additions and 2 deletions

View File

@ -269,8 +269,8 @@ public class S3Storage extends Storage {
.build()
);
List<String> ids = new ArrayList<>();
for (var file: files.contents()) {
String id = file.key().split("/")[0];
for (var file: files.commonPrefixes()) {
String id = file.prefix().split("/")[0];
if (!ids.contains(id)) {
ids.add(id);
}