diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-07 22:16:47 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-07 22:16:47 +0100 |
commit | 214729a5524e2c406415985717c174bedc810954 (patch) | |
tree | b1b27273ef8f951e1cdba1aa60eb334843dee418 /apps/files_external/lib/sftp.php | |
parent | ca8f7fd69c63a8149e73df98d77e489b319f37e4 (diff) | |
parent | da951ba059209914849dd9a289ea3f398bbab70e (diff) | |
download | nextcloud-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 'apps/files_external/lib/sftp.php')
-rw-r--r-- | apps/files_external/lib/sftp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index 03620cfffe2..7f921b5342f 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -29,6 +29,7 @@ * */ namespace OC\Files\Storage; +use Icewind\Streams\IteratorDirectory; use phpseclib\Net\SFTP\Stream; @@ -280,8 +281,7 @@ class SFTP extends \OC\Files\Storage\Common { $dirStream[] = $file; } } - \OC\Files\Stream\Dir::register($id, $dirStream); - return opendir('fakedir://' . $id); + return IteratorDirectory::wrap($dirStream); } catch(\Exception $e) { return false; } |