Skip to content

Commit 82f3caf

Browse files
authored
Merge pull request #17593 from iterate-ch/bugfix/GH-17456
Logging.
2 parents 84a6458 + fb65913 commit 82f3caf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

s3/src/main/java/ch/cyberduck/core/s3/S3VersionedObjectListService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public AttributedList<Path> list(final Path directory, final ListProgressListene
156156
if(new SimplePathPredicate(PathNormalizer.compose(bucket, URIEncoder.decode(common))).test(directory)) {
157157
continue;
158158
}
159+
log.debug("Handle common prefix {}", common);
159160
folders.add(this.submit(pool, bucket, directory, URIEncoder.decode(common)));
160161
}
161162
for(Future<Path> f : folders) {
@@ -226,13 +227,15 @@ public Path call() throws BackgroundException {
226227
final BaseVersionOrDeleteMarker version = versions.getItems()[0];
227228
if(URIEncoder.decode(version.getKey()).equals(prefix)) {
228229
attr.setVersionId(version.getVersionId());
230+
log.debug("Set trashed attribute for prefix {}", key);
229231
attr.setTrashed(version.isDeleteMarker());
230232
}
231233
// No placeholder but objects inside; need to check if all of them are deleted
232234
final StorageObjectsChunk unversioned = session.getClient().listObjectsChunked(
233235
bucket.isRoot() ? StringUtils.EMPTY : bucket.getName(), prefix,
234236
null, 1, null, false);
235237
if(unversioned.getObjects().length == 0) {
238+
log.debug("Set duplicate attribute for prefix {}", key);
236239
attr.setDuplicate(true);
237240
}
238241
}

0 commit comments

Comments
 (0)