diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-02 15:38:17 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-14 12:54:42 +0100 |
commit | e77e76fef4e55df2ff68b28934ced8b5b110e971 (patch) | |
tree | 4edad46bd44dc3fd43504b5f5ae36ff0c77d60a6 /lib/private | |
parent | d2c579e16772cb6666d95d484b9aa11764217a0a (diff) | |
download | nextcloud-server-e77e76fef4e55df2ff68b28934ced8b5b110e971.tar.gz nextcloud-server-e77e76fef4e55df2ff68b28934ced8b5b110e971.zip |
fix object store storage
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/files/objectstore/objectstorestorage.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index 9cea07b7f69..35c2c19c75b 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -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; + } } /** |