blob: 19ca4a13eceb82b6b95c08a8479ef6b02dbc1d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?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);
}
}
|