-
-
Notifications
You must be signed in to change notification settings - Fork 145
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 |
38d3044
to
a3ce3eb
Compare
38cc5db
to
0a8a17e
Compare
4b7b01e
to
494d200
Compare
b843c77
to
77e9645
Compare
7ae8df7
to
0d1508c
Compare
5b5c893
to
81e3e6d
Compare
b080db7
to
d668e02
Compare
1e73622
to
d6a9961
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.