We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea6c6ff commit e653ed2Copy full SHA for e653ed2
index.php
@@ -222,11 +222,15 @@ private function rmdir_recursive($dir)
222
foreach ($files as $fileinfo) {
223
if ($fileinfo->isDir()) {
224
if (false === rmdir($fileinfo->getRealPath())) {
225
- throw new \UpdateException("Could not delete $fileinfo");
+ if (false === unlink($fileinfo)) {
226
+ throw new \UpdateException("Could not delete $fileinfo");
227
+ }
228
}
229
} else {
230
if (false === unlink($fileinfo->getRealPath())) {
231
232
233
234
235
236
0 commit comments