From dd59f387d67b914dcb36460a3ef40d02634a57ef Mon Sep 17 00:00:00 2001 From: David Kocher Date: Thu, 7 Nov 2024 15:19:02 +0100 Subject: [PATCH] Fix #16472. --- .../ch/cyberduck/core/s3/S3VersionedObjectListService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/s3/src/main/java/ch/cyberduck/core/s3/S3VersionedObjectListService.java b/s3/src/main/java/ch/cyberduck/core/s3/S3VersionedObjectListService.java index 38feb77f476..ca2477215b4 100644 --- a/s3/src/main/java/ch/cyberduck/core/s3/S3VersionedObjectListService.java +++ b/s3/src/main/java/ch/cyberduck/core/s3/S3VersionedObjectListService.java @@ -148,7 +148,10 @@ public AttributedList list(final Path directory, final ListProgressListene final Path f = new Path(directory.isDirectory() ? directory : directory.getParent(), PathNormalizer.name(key), EnumSet.of(Path.Type.file), attr); if(metadata) { - f.withAttributes(attributes.find(f)); + // Method Not Allowed for delete marker + if(!marker.isDeleteMarker()) { + f.withAttributes(attributes.find(f)); + } } objects.add(f); lastKey = key;