mirror of
https://github.com/nextcloud/server.git
synced 2025-01-01 09:52:41 +00:00
dae7c159f7
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
28 lines
721 B
PHP
28 lines
721 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Files\Cache\Wrapper;
|
|
|
|
use OC\Files\Cache\Propagator;
|
|
use OC\Files\Storage\Wrapper\Jail;
|
|
|
|
class JailPropagator extends Propagator {
|
|
/**
|
|
* @var Jail
|
|
*/
|
|
protected $storage;
|
|
|
|
/**
|
|
* @param string $internalPath
|
|
* @param int $time
|
|
* @param int $sizeDifference
|
|
*/
|
|
public function propagateChange($internalPath, $time, $sizeDifference = 0) {
|
|
/** @var \OC\Files\Storage\Storage $storage */
|
|
[$storage, $sourceInternalPath] = $this->storage->resolvePath($internalPath);
|
|
$storage->getPropagator()->propagateChange($sourceInternalPath, $time, $sizeDifference);
|
|
}
|
|
}
|