2020-09-15 10:29:21 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2020-12-16 08:54:15 -05:00
|
|
|
|
2020-09-15 10:29:21 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-09-15 10:29:21 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\Files\Cache;
|
|
|
|
|
|
|
|
|
|
class NullWatcher extends Watcher {
|
|
|
|
|
private $policy;
|
|
|
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function setPolicy($policy) {
|
|
|
|
|
$this->policy = $policy;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPolicy() {
|
|
|
|
|
return $this->policy;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function checkUpdate($path, $cachedEntry = null) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function update($path, $cachedData) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function needsUpdate($path, $cachedData) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function cleanFolder($path) {
|
|
|
|
|
}
|
|
|
|
|
}
|