From c2fc3195dd67d523db897ed04657a40f9b19cc8a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 8 Mar 2021 19:27:39 +0100 Subject: also implement for FailedCache and NullCache Signed-off-by: Robin Appelman --- lib/private/Files/Cache/FailedCache.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/private/Files/Cache/FailedCache.php') diff --git a/lib/private/Files/Cache/FailedCache.php b/lib/private/Files/Cache/FailedCache.php index b57ca2b2572..d9315ec50d5 100644 --- a/lib/private/Files/Cache/FailedCache.php +++ b/lib/private/Files/Cache/FailedCache.php @@ -24,6 +24,7 @@ namespace OC\Files\Cache; use OCP\Constants; use OCP\Files\Cache\ICache; +use OCP\Files\Cache\ICacheEntry; use OCP\Files\Search\ISearchQuery; /** @@ -134,4 +135,8 @@ class FailedCache implements ICache { public function normalize($path) { return $path; } + + public function copyFromCache(ICache $sourceCache, ICacheEntry $sourceEntry, string $targetPath): int { + throw new \Exception("Invalid cache"); + } } -- cgit v1.2.3