In includes/filerepo/file/LocalFile.php, the hook LocalFilePurgeThumbnails appears to exist so that the wiki can purge thumbnails from caches. However, since it occurs after the line:
$this->purgeThumbList( $dir, $files );
It only returns the folder, not the files that (used to) exist.
Can we have the hook moved before the purgeThumbList code, in both instances?