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
parent 921ee17026
commit b76cdd09cc
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -355,7 +355,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);