"Fileadmin garbage collection" scheduler task doesn't remove entries from sys_file
As stated in subject, the fileadmin cleaner only removes the files from filesystem, but not from
sys_file table, which results in showing all the removed
/_recycler_/* files in Report "Files flagged as missing".
A bit related to #59312.
[BUGFIX] Use FAL api to delete file in garbage collection task
This patch uses FAL file objects and their api to delete them from
recycler. This is needed to clean up the database entries as well.
Tested-by: TYPO3com <email@example.com>
Reviewed-by: Joerg Boesche <firstname.lastname@example.org>
Reviewed-by: Wouter Wolters <email@example.com>
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Reviewed-by: Christian Kuhn <email@example.com>
Tested-by: Christian Kuhn <firstname.lastname@example.org>