fix ls output when latest version is delete marker (#3391)

This commit is contained in:
Harshavardhana
2020-09-01 13:46:07 -07:00
committed by GitHub
parent b55e3e2d29
commit 5649deee40
-13
View File
@@ -159,19 +159,6 @@ func checkListSyntax(ctx context.Context, cliCtx *cli.Context) ([]string, bool,
timeRef = time.Now().UTC()
}
for _, url := range cliCtx.Args() {
_, _, err := url2Stat(ctx, url, "", false, nil, timeRef)
if err != nil && !isURLPrefixExists(url, isIncomplete) {
// Bucket name empty is a valid error for 'ls myminio',
// treat it as such.
_, buckNameEmpty := err.ToGoError().(BucketNameEmpty)
if buckNameEmpty {
continue
}
fatalIf(err.Trace(url), "Unable to stat `"+url+"`.")
}
}
return args, isRecursive, isIncomplete, timeRef, withOlderVersions
}