-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix missing metadata in stat cmd #2348
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2348 +/- ##
==========================================
+ Coverage 10.76% 10.76% +<.01%
==========================================
Files 103 103
Lines 7723 7721 -2
==========================================
Hits 831 831
+ Misses 6758 6756 -2
Partials 134 134
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM tested.
@@ -144,9 +144,6 @@ func doStat(clnt Client, isRecursive bool, targetAlias, targetURL string) error | |||
continue | |||
} | |||
url := targetAlias + getKey(content) | |||
if !isAliasURLDir(targetURL) { | |||
url = content.URL.Path | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doStat(clnt Client, isRecursive bool, targetAlias, targetURL string)
looks like targetURL is not used ... you can remove this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
mc stat without --r is missing metadata for stat on objectname
mc stat without --r is missing metadata for stat on objectname.