diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-03-10 16:30:13 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-07-15 13:57:53 +0200 |
commit | da951ba059209914849dd9a289ea3f398bbab70e (patch) | |
tree | a20b027f9cc6a51002984c79a49de64b6fd76316 /lib/private/files/objectstore | |
parent | 5581ae12a1c1e60a09108855d6f2bbfc620f7bf1 (diff) | |
download | nextcloud-server-da951ba059209914849dd9a289ea3f398bbab70e.tar.gz nextcloud-server-da951ba059209914849dd9a289ea3f398bbab70e.zip |
Use the new IteratorDirectory instead of the fakedir wrapper
Diffstat (limited to 'lib/private/files/objectstore')
-rw-r--r-- | lib/private/files/objectstore/objectstorestorage.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index 24398649727..a85553186ae 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -24,6 +24,7 @@ namespace OC\Files\ObjectStore; +use Icewind\Streams\IteratorDirectory; use OCP\Files\ObjectStore\IObjectStore; class ObjectStoreStorage extends \OC\Files\Storage\Common { @@ -216,9 +217,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { $files[] = $file['name']; } - \OC\Files\Stream\Dir::register('objectstore' . $path . '/', $files); - - return opendir('fakedir://objectstore' . $path . '/'); + return IteratorDirectory::wrap($files); } catch (\Exception $e) { \OCP\Util::writeLog('objectstore', $e->getMessage(), \OCP\Util::ERROR); return false; |