app/Http/Controllers/Admin/UpgradeController.php
private function wizardStepPrepare(): ResponseInterface
    {
        $this->filesystem->deleteDir(self::UPGRADE_FOLDER);
        $this->filesystem->createDir(self::UPGRADE_FOLDER);

        return response(view('components/alert-success', [
            'alert' => I18N::translate('The folder %s has been created.', e(self::UPGRADE_FOLDER)),
        ]));
    }
private function wizardStepPrepare(): ResponseInterface
    {
        $this->filesystem->deleteDir(self::UPGRADE_FOLDER);
        $this->filesystem->createDir(self::UPGRADE_FOLDER);

        return response(view('components/alert-success', [
            'alert' => I18N::translate('The folder %s has been created.', e(self::UPGRADE_FOLDER)),
        ]));
    }
private function wizardStepPrepare ( ) : ResponseInterface { $ this -> filesystem -> deleteDir ( self :: UPGRADE_FOLDER ) ; $ this -> filesystem -> createDir ( self :: UPGRADE_FOLDER ) ; return response ( view ( 'components/alert-success' , [ 'alert' => I18N :: translate ( 'The folder %s has been created.' , e ( self :: UPGRADE_FOLDER ) ) , ] ) ) ; }
Make sure the temporary folder exists.

@return ResponseInterface
Make sure the temporary folder exists .