Merge pull request #9352 from nextcloud/9318_SCSSCacher_resetCache_catch_exception

Issue #9318: catch exceptions in SCSSCacher::resetCache()
This commit is contained in:
Morris Jobke 2018-05-03 09:56:26 +02:00 committed by GitHub
commit 0f8210792c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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