Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorC. Montero Luque <cmonteroluque@users.noreply.github.com>2016-03-01 23:32:27 +0300
committerC. Montero Luque <cmonteroluque@users.noreply.github.com>2016-03-01 23:32:27 +0300
commit12479a1eda63e45207290eeaa68498112c40a9bf (patch)
treea43ada284aa06e8e22a6ac5f2c998d3c2fc5d2f7
parent069c65479d9ad0587415757c5bab200b6f00127e (diff)
parentc51a01b43f514fc50c47de1ed78d2bdfb8572621 (diff)
Merge pull request #22756 from owncloud/exclude-custom-data-dir
Exclude custom data directory from integrity checker
-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);
}
/**