$this->
performFileDelete($context,
$publicPaths, Visibility::
PUBLIC);
$this->
performFileDelete($context,
$privatePaths, Visibility::
PRIVATE);
$this->thumbnailRepository->
delete($thumbnails,
$context);
} /**
* @param list<string> $affected
*/
private function handleFolderDeletion(array
$affected, Context
$context): void
{ $ids =
$this->
fetchChildrenIds($affected);
if (empty($ids)) { return;
} $media =
$this->connection->
fetchAllAssociative( 'SELECT LOWER(HEX(id)) as id FROM media WHERE media_folder_id IN (:ids)',
['ids' => Uuid::
fromHexToBytesList($ids)],
['ids' => ArrayParameterType::STRING
] );