diff options
author | Robin Appelman <robin@icewind.nl> | 2021-03-08 19:27:39 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-03-12 17:22:43 +0100 |
commit | c2fc3195dd67d523db897ed04657a40f9b19cc8a (patch) | |
tree | 1f580ac78b0c02bba46fcf5306544b95768b05e2 /lib/private/Files/Cache/FailedCache.php | |
parent | ad636ae12d0bba90979b05b5106959244d3ba256 (diff) | |
download | nextcloud-server-c2fc3195dd67d523db897ed04657a40f9b19cc8a.tar.gz nextcloud-server-c2fc3195dd67d523db897ed04657a40f9b19cc8a.zip |
also implement for FailedCache and NullCache
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/FailedCache.php')
-rw-r--r-- | lib/private/Files/Cache/FailedCache.php | 5 |
1 files changed, 5 insertions, 0 deletions
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"); + } } |