Skip to content

Commit cf1fc78

Browse files
Merge pull request #57878 from nextcloud/fix/view/put-fileinfo-cacheentry
2 parents 21ab477 + d7fa94b commit cf1fc78

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)