summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php b/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php
index 67bcd423b68..fc261e4bc5a 100644
--- a/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php
+++ b/lib/private/integritycheck/iterator/excludefoldersbypathfilteriterator.php
@@ -32,12 +32,18 @@ class ExcludeFoldersByPathFilterIterator extends \RecursiveFilterIterator {
$appFolders[$key] = rtrim($appFolder['path'], '/');
}
- $this->excludedFolders = array_merge([
+ $excludedFolders = [
rtrim($root . '/data', '/'),
rtrim($root .'/themes', '/'),
rtrim($root.'/config', '/'),
rtrim($root.'/apps', '/'),
- ], $appFolders);
+ ];
+ $customDataDir = \OC::$server->getConfig()->getSystemValue('datadirectory', '');
+ if($customDataDir !== '') {
+ $excludedFolders[] = rtrim($customDataDir, '/');
+ }
+
+ $this->excludedFolders = array_merge($excludedFolders, $appFolders);
}
/**