diff options
author | Robin Appelman <robin@icewind.nl> | 2018-09-19 20:26:03 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-10-17 14:57:33 +0200 |
commit | 6c5ea0cecaa2dc21cfb6fc9ea339f8bae7d2a986 (patch) | |
tree | d38df5ca3ec24b1bc01a701597cfb8528e99a728 | |
parent | 565d830c1102e139b36a33d75ac4201be382426f (diff) | |
download | nextcloud-server-6c5ea0cecaa2dc21cfb6fc9ea339f8bae7d2a986.tar.gz nextcloud-server-6c5ea0cecaa2dc21cfb6fc9ea339f8bae7d2a986.zip |
pass `Cache::getMoveInfo` along cache wrappers
fixes cross storage move in some cases
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/Cache/Wrapper/CacheWrapper.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php index bf0d12ba2ea..da0a1b54e7f 100644 --- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php +++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php @@ -187,6 +187,12 @@ class CacheWrapper extends Cache { $this->getCache()->move($source, $target); } + protected function getMoveInfo($path) { + /** @var Cache $cache */ + $cache = $this->getCache(); + return $cache->getMoveInfo($path); + } + public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) { $this->getCache()->moveFromCache($sourceCache, $sourcePath, $targetPath); } |