Skip to content

Commit

Permalink
Return delete markers in mc find (#5083)
Browse files Browse the repository at this point in the history
* Default to list delete flags if they are part of the result set, so that they are not hidden from the find function

* Add --with-delete-marker flag to toggle the listing of delete markers. Defaults to false

* List delete markers as well when using the --versions flag
  • Loading branch information
allanrogerr authored Nov 20, 2024
1 parent bb4ff49 commit 35cb4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func doFind(ctxCtx context.Context, ctx *findContext) error {

lstOptions := ListOptions{
WithOlderVersions: ctx.withVersions,
WithDeleteMarkers: false,
WithDeleteMarkers: ctx.withVersions,
Recursive: true,
ShowDir: DirFirst,
WithMetadata: len(ctx.matchMeta) > 0 || len(ctx.matchTags) > 0,
Expand Down

0 comments on commit 35cb4b8

Please sign in to comment.