diff --git a/composer.lock b/composer.lock index 0e235ad4..8137b9a8 100644 --- a/composer.lock +++ b/composer.lock @@ -1044,5 +1044,5 @@ "platform-overrides": { "php": "8.0" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } diff --git a/index.php b/index.php index 69c1d161..83e27c8b 100644 --- a/index.php +++ b/index.php @@ -829,14 +829,12 @@ private function recursiveDelete(string $folder): void { $directories = []; $files = []; foreach ($iterator as $fileInfo) { - if ($fileInfo->isDir()) { + if ($fileInfo->isLink()) { + $files[] = $fileInfo->getPathname(); + } elseif ($fileInfo->isFile()) { + $files[] = $fileInfo->getRealPath(); + } elseif ($fileInfo->isDir()) { $directories[] = $fileInfo->getRealPath(); - } else { - if ($fileInfo->isLink()) { - $files[] = $fileInfo->getPathName(); - } else { - $files[] = $fileInfo->getRealPath(); - } } } diff --git a/lib/Updater.php b/lib/Updater.php index 37d112d1..b043997a 100644 --- a/lib/Updater.php +++ b/lib/Updater.php @@ -791,14 +791,12 @@ private function recursiveDelete(string $folder): void { $directories = []; $files = []; foreach ($iterator as $fileInfo) { - if ($fileInfo->isDir()) { + if ($fileInfo->isLink()) { + $files[] = $fileInfo->getPathname(); + } elseif ($fileInfo->isFile()) { + $files[] = $fileInfo->getRealPath(); + } elseif ($fileInfo->isDir()) { $directories[] = $fileInfo->getRealPath(); - } else { - if ($fileInfo->isLink()) { - $files[] = $fileInfo->getPathName(); - } else { - $files[] = $fileInfo->getRealPath(); - } } } diff --git a/updater.phar b/updater.phar index 3e760b1b..8d16b0f0 100755 Binary files a/updater.phar and b/updater.phar differ