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
This commit is contained in:
Allan Roger Reid
2024-11-20 10:10:21 -08:00
committed by GitHub
parent bb4ff4951a
commit 35cb4b8177
+1 -1
View File
@@ -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,