-
Notifications
You must be signed in to change notification settings - Fork 439
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
Only throw exception when creating directory really failed in HandleFailureTrait #2341
Conversation
…ailureTrait When multiple processes try to create a directory at the same time `mkdir` is going to fail and return false. This should not warrant an exception. This change ensures the directory exists - and only throws when it does not.
Codecov Report
@@ Coverage Diff @@
## master #2341 +/- ##
============================================
- Coverage 92.49% 92.49% -0.01%
- Complexity 4479 4480 +1
============================================
Files 311 311
Lines 13358 13357 -1
============================================
- Hits 12355 12354 -1
Misses 1003 1003
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.
This is really solid, thanks @Ged15 👍 . Always appreciate your contributions.
When multiple processes try to create a directory at the same time
mkdir
is going to fail and return false. This should not warrant an exception.This change ensures the directory exists - and only throws when it does not.