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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user