From 35cb4b8177d41bfa06e2ad77c19778b6deb3a881 Mon Sep 17 00:00:00 2001 From: Allan Roger Reid Date: Wed, 20 Nov 2024 10:10:21 -0800 Subject: [PATCH] Return delete markers in mc find (#5083) * 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 --- cmd/find.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/find.go b/cmd/find.go index d5979dcf..760efb7b 100644 --- a/cmd/find.go +++ b/cmd/find.go @@ -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,