]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix object store storage
authorRobin Appelman <icewind@owncloud.com>
Wed, 2 Dec 2015 14:38:17 +0000 (15:38 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 14 Jan 2016 11:54:42 +0000 (12:54 +0100)
lib/private/files/objectstore/objectstorestorage.php

index 9cea07b7f69a836a8fb77d3fcc95214984b330a6..35c2c19c75b8dfbf7fdd8b6fe58dcd700c2a2fcb 100644 (file)
@@ -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;
+               }
        }
 
        /**