Skip to content

Commit d7fa94b

Browse files
committed
fix(View): Handle ICacheEntry returned by FileInfo->getData()
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent dde7b7c commit d7fa94b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/private/Files/View.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace OC\Files;
99

1010
use Icewind\Streams\CallbackWrapper;
11+
use OC\Files\Cache\CacheEntry;
1112
use OC\Files\Mount\MoveableMount;
1213
use OC\Files\Storage\Storage;
1314
use OC\Files\Storage\Wrapper\Quota;
@@ -1659,6 +1660,9 @@ public function putFileInfo($path, $data) {
16591660
if ($data instanceof FileInfo) {
16601661
$data = $data->getData();
16611662
}
1663+
if ($data instanceof CacheEntry) {
1664+
$data = $data->getData();
1665+
}
16621666
$path = Filesystem::normalizePath($this->fakeRoot . '/' . $path);
16631667
/**
16641668
* @var Storage $storage

0 commit comments

Comments
 (0)