mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
fix(View): Handle ICacheEntry returned by FileInfo->getData()
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
dde7b7cf87
commit
d7fa94b90b
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
namespace OC\Files;
|
||||
|
||||
use Icewind\Streams\CallbackWrapper;
|
||||
use OC\Files\Cache\CacheEntry;
|
||||
use OC\Files\Mount\MoveableMount;
|
||||
use OC\Files\Storage\Storage;
|
||||
use OC\Files\Storage\Wrapper\Quota;
|
||||
|
|
@ -1659,6 +1660,9 @@ class View {
|
|||
if ($data instanceof FileInfo) {
|
||||
$data = $data->getData();
|
||||
}
|
||||
if ($data instanceof CacheEntry) {
|
||||
$data = $data->getData();
|
||||
}
|
||||
$path = Filesystem::normalizePath($this->fakeRoot . '/' . $path);
|
||||
/**
|
||||
* @var Storage $storage
|
||||
|
|
|
|||
Loading…
Reference in a new issue