summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/dav.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-07 22:16:47 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-07 22:16:47 +0100
commit214729a5524e2c406415985717c174bedc810954 (patch)
treeb1b27273ef8f951e1cdba1aa60eb334843dee418 /lib/private/files/storage/dav.php
parentca8f7fd69c63a8149e73df98d77e489b319f37e4 (diff)
parentda951ba059209914849dd9a289ea3f398bbab70e (diff)
downloadnextcloud-server-214729a5524e2c406415985717c174bedc810954.tar.gz
nextcloud-server-214729a5524e2c406415985717c174bedc810954.zip
Merge pull request #14779 from owncloud/use-iterator-directory
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.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php
index 24cf3c29209..6e89dcccbcd 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 . '/');