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/storage/dav.php | |
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/storage/dav.php')
-rw-r--r-- | lib/private/files/storage/dav.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index e02f971b38b..4be587e7799 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -38,7 +38,7 @@ namespace OC\Files\Storage; use Exception; use OC\Files\Filesystem; use OC\Files\Stream\Close; -use OC\Files\Stream\Dir; +use Icewind\Streams\IteratorDirectory; use OC\MemCache\ArrayCache; use OCP\Constants; use OCP\Files; @@ -211,8 +211,7 @@ class DAV extends Common { $file = basename($file); $content[] = $file; } - Dir::register($id, $content); - return opendir('fakedir://' . $id); + return IteratorDirectory::wrap($content); } catch (ClientHttpException $e) { if ($e->getHttpStatus() === 404) { $this->statCache->clear($path . '/'); |