From 6c5ea0cecaa2dc21cfb6fc9ea339f8bae7d2a986 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 19 Sep 2018 20:26:03 +0200 Subject: pass `Cache::getMoveInfo` along cache wrappers fixes cross storage move in some cases Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Wrapper/CacheWrapper.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- cgit v1.2.3