diff options
author | Roland Tapken <roland@bitarbeiter.net> | 2018-04-30 17:50:56 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-05-02 21:23:13 +0200 |
commit | 6270a01cab3d6cce864b8b795749598f9d65b6c3 (patch) | |
tree | 5a5d3e12fb068d71783eeaded2d24eb137c5329f /lib/private/Template/SCSSCacher.php | |
parent | 2aa108000cd5bb29b7be5d7226185b5c1be59e29 (diff) | |
download | nextcloud-server-6270a01cab3d6cce864b8b795749598f9d65b6c3.tar.gz nextcloud-server-6270a01cab3d6cce864b8b795749598f9d65b6c3.zip |
Issue #9318: catch exceptions in SCSSCacher::resetCache()
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
Diffstat (limited to 'lib/private/Template/SCSSCacher.php')
-rw-r--r-- | lib/private/Template/SCSSCacher.php | 6 |
1 files changed, 5 insertions, 1 deletions
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()]); + } } } } |