123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace OC\Files\Cache;
- use OCP\IDBConnection;
- class HomePropagator extends Propagator {
- private $ignoredBaseFolders;
-
- public function __construct(\OC\Files\Storage\Storage $storage, IDBConnection $connection) {
- parent::__construct($storage, $connection);
- $this->ignoredBaseFolders = ['files_encryption'];
- }
-
- public function propagateChange($internalPath, $time, $sizeDifference = 0) {
- [$baseFolder] = explode('/', $internalPath, 2);
- if (in_array($baseFolder, $this->ignoredBaseFolders)) {
- return [];
- } else {
- parent::propagateChange($internalPath, $time, $sizeDifference);
- }
- }
- }
|