fix: catch all exceptions during trashbin cache move

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-04-01 19:17:25 +02:00 committed by backportbot[bot]
parent 4f5b8c1063
commit e734829154

View file

@ -352,7 +352,7 @@ class Trashbin implements IEventListener {
}
$trashStorage->getUpdater()->update($trashInternalPath, null, $sizeDifference);
}
} catch (CopyRecursiveException $e) {
} catch (\Exception $e) {
$moveSuccessful = false;
if ($trashStorage->file_exists($trashInternalPath)) {
$trashStorage->unlink($trashInternalPath);