-
Notifications
You must be signed in to change notification settings - Fork 765
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 checkIsEmptyDir #1978
base: main
Are you sure you want to change the base?
fix checkIsEmptyDir #1978
Conversation
Welcome @mcarbonneaux! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mcarbonneaux The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
return true, err | ||
} | ||
for _, file := range files { | ||
if !file.IsDir() { | ||
log.Debugf("IsDir of %v return that is not directory !",file); |
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.
Need to remove debug calls and error log calls
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.
i remove it, but some time is usefull to have more information hiden in debug that you can log level up to troubleshoot (by default debug output is not printed...) ...
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.
and i've changed warnf to errorf because normaly is not a warn!
|
gofmt
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.
Thanks for the contribution, couple of nits
change errorf from %v to %s
@mcarbonneaux seems like some e2e tests are failing due to your PR. Can you fix them before approving the PR? |
i've tryed to fix the test. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
fix bug in recursive checkIsEmptyDir that not work from 1.33.0...
Which issue(s) this PR fixes:
Fixes #1977