Skip to content

Commit

Permalink
Merge pull request #16508 from iterate-ch/bugfix/GH-16472
Browse files Browse the repository at this point in the history
Fix #16472.
  • Loading branch information
dkocher authored Nov 7, 2024
2 parents 38336d1 + dd59f38 commit 412a912
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ public AttributedList<Path> 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;
Expand Down

0 comments on commit 412a912

Please sign in to comment.