Skip to content

Commit

Permalink
Fix #16472.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 7, 2024
1 parent 5e1d091 commit dd59f38
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 dd59f38

Please sign in to comment.