Closed LeMyst closed 2 years ago
If you remove files in system, CI4 won't work.
Why would system/ThirdParty
not exist in the first place?
Hello @kenjis and @paulbalandan ,
I don't know, but I was in this case.
Maybe a previous recursiveDelete() fails, maybe something else, but I think it's better to not fail the entire update process only because a "delete folder" function can't delete the folder because the folder is already deleted.
Yes, if the script is terminated by some reasons right after recursiveDelete()
execution,
system/ThirdParty/
does not exist when the next execution of composer update
.
So, the case where system/ThirdParty/
does not exist could happen.
PHP Version
8.1
CodeIgniter4 Version
4.2.10
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
fpm-fcgi
Database
No response
What happened?
During a
composer update
, the function "recursiveDelete()" fail because the folder doesn't exist and block the update process.Steps to Reproduce
Delete the folder "system/ThirdParty" and run the command
composer update
Expected Output
Only the
Cannot recursively delete "/home/myst/xxxxxxx/system/ThirdParty/" as it does not exist.
message without the Exception.Anything else?
Can be solved by simply add a
return;
in theif
ofrecursiveDelete()
.