-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Delete: During the deletion of a folder, additional files may be added. #279
base: master
Are you sure you want to change the base?
Conversation
…turn objects Type (BC break)
Since PHP 8.0 ReflectionParameter::getDefaultValue() correctly returns value or throws exception when constant cannot be resolved
The error seems expected. You simply cannot delete a directory that is actively being written into. |
This means that, for example, the cache can never be removed if there are many parallel requests to the application. How to safely delete the cache contents if there is an error? For example, the |
You can remove individual files, just not the directory itself. |
That's because of |
So could Nette implement a |
6733224
to
5de10a1
Compare
a846fab
to
736c567
Compare
cd9170e
to
2b48b24
Compare
New files may be created by another process while the directory is being deleted. The deletion will then fail. The new implementation repeatedly checks the files in the directory.
Demo:
Thanks.