From f41375e608f88fff24fbfcdd3ad5b34f682478c4 Mon Sep 17 00:00:00 2001 From: Florian Thoma Date: Mon, 31 Jul 2017 18:14:04 +1000 Subject: [PATCH] add dmsassets folder to file system sync exclusion, fixes #190 --- _config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_config.php b/_config.php index b7e7c67..a85bb98 100644 --- a/_config.php +++ b/_config.php @@ -19,3 +19,9 @@ if ($config->get('DMSDocument_versions', 'enable_versions')) { //using the same db relations for the versioned documents, as for the actual documents $config->update('DMSDocument_versions', 'db', $config->get('DMSDocument', 'db')); } + +// add dmsassets folder to file system sync exclusion +if (strpos($config->get('DMS', 'folder_name'), 'assets/') === 0) { + $folderName = str_replace('assets/', '', $config->get('DMS', 'folder_name')); + $config->update('Filesystem', 'sync_blacklisted_patterns', array("/^" . $folderName . "$/i",)); +}