mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix object store storage
This commit is contained in:
parent
d2c579e167
commit
e77e76fef4
1 changed files with 7 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
namespace OC\Files\ObjectStore;
|
||||
|
||||
use Icewind\Streams\IteratorDirectory;
|
||||
use OC\Files\Cache\CacheEntry;
|
||||
use OCP\Files\ObjectStore\IObjectStore;
|
||||
|
||||
class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
||||
|
|
@ -192,7 +193,12 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
|||
|
||||
public function stat($path) {
|
||||
$path = $this->normalizePath($path);
|
||||
return $this->getCache()->get($path);
|
||||
$cacheEntry = $this->getCache()->get($path);
|
||||
if ($cacheEntry instanceof CacheEntry) {
|
||||
return $cacheEntry->getData();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue