Merge pull request #9377 from nextcloud/9318_SCSSCacher_resetCache_catch_exception_stable13

Issue #9318: catch exceptions in SCSSCacher::resetCache()
This commit is contained in:
Morris Jobke 2018-05-03 13:56:45 +02:00 committed by GitHub
commit 1dcf40515f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -266,7 +266,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()]);
}
}
}
}