JailPropagator.php 721 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Files\Cache\Wrapper;
  7. use OC\Files\Cache\Propagator;
  8. use OC\Files\Storage\Wrapper\Jail;
  9. class JailPropagator extends Propagator {
  10. /**
  11. * @var Jail
  12. */
  13. protected $storage;
  14. /**
  15. * @param string $internalPath
  16. * @param int $time
  17. * @param int $sizeDifference
  18. */
  19. public function propagateChange($internalPath, $time, $sizeDifference = 0) {
  20. /** @var \OC\Files\Storage\Storage $storage */
  21. [$storage, $sourceInternalPath] = $this->storage->resolvePath($internalPath);
  22. $storage->getPropagator()->propagateChange($sourceInternalPath, $time, $sizeDifference);
  23. }
  24. }