-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Don't create cache directory in constructor + Fix nested directory permissions #88
Conversation
vjik
commented
Jan 10, 2025
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #88 +/- ##
============================================
+ Coverage 91.13% 91.19% +0.05%
+ Complexity 72 69 -3
============================================
Files 1 1
Lines 158 159 +1
============================================
+ Hits 144 145 +1
Misses 14 14 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
$result = !is_file($path) && mkdir(directory: $path, recursive: true) && is_dir($path); | ||
mkdir($path, recursive: true); |
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.
Wouldn't it fail in case of race condition? is_dir
+ mkdir
is not an atomic operation.
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.
It will. Race condition don't fixed in this PR. I make it next PR.
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>