User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
deleteUnexistingFiles() in the component install script calls Joomla\Filesystem\File::delete() for a list of files from old versions. File::delete() throws a FilesystemException when the file does not exist, so the script echoes FILES_JOOMLA_ERROR_FILE_FOLDER for every file that is not present, which is the normal case on new installs and on sites that were already cleaned up.
The folders below were already guarded with is_dir(). This PR adds the same guard (is_file()) for the files.
Install com_weblinks.zip (from dist/zips after robo build) on its own on a fresh site and check the installation message in the backend installer. Alternatively add a debug log in the catch block of deleteUnexistingFiles().
No error lines for missing legacy files. Existing legacy files are still deleted.
One FILES_JOOMLA_ERROR_FILE_FOLDER line per missing legacy file is added to the installer output (the installer captures script output as extension message).
None