From 6270a01cab3d6cce864b8b795749598f9d65b6c3 Mon Sep 17 00:00:00 2001 From: Roland Tapken Date: Mon, 30 Apr 2018 17:50:56 +0200 Subject: Issue #9318: catch exceptions in SCSSCacher::resetCache() Signed-off-by: Roland Tapken --- lib/private/Template/SCSSCacher.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/private/Template/SCSSCacher.php') diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index 6fb9d11953b..6e25e1fa5de 100644 --- a/lib/private/Template/SCSSCacher.php +++ b/lib/private/Template/SCSSCacher.php @@ -273,7 +273,11 @@ class SCSSCacher { $appDirectory = $this->appData->getDirectoryListing(); foreach ($appDirectory as $folder) { foreach ($folder->getDirectoryListing() as $file) { - $file->delete(); + try { + $file->delete(); + } catch(NotPermittedException $e) { + $this->logger->logException($e, ['message' => 'SCSSCacher: unable to delete file: ' . $file->getName()]); + } } } } -- cgit v1.2.3