pass Cache::getMoveInfo along cache wrappers

fixes cross storage move in some cases

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-09-19 20:26:03 +02:00
parent 565d830c11
commit 6c5ea0ceca
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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);
}