diff --git a/cmd/ls-main.go b/cmd/ls-main.go index 39152399..c2fcf5bb 100644 --- a/cmd/ls-main.go +++ b/cmd/ls-main.go @@ -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 }