Browse Source

pass `Cache::getMoveInfo` along cache wrappers

fixes cross storage move in some cases

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/11439/head
Robin Appelman 7 years ago
parent
commit
6c5ea0ceca
No known key found for this signature in database GPG Key ID: 42B69D8A64526EFB
  1. 6
      lib/private/Files/Cache/Wrapper/CacheWrapper.php

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

Loading…
Cancel
Save