From da951ba059209914849dd9a289ea3f398bbab70e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 10 Mar 2015 16:30:13 +0100 Subject: Use the new IteratorDirectory instead of the fakedir wrapper --- apps/files_external/lib/sftp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_external/lib/sftp.php') diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index cbe090311a9..64bb52f3193 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; /** * Uses phpseclib's Net_SFTP class and the Net_SFTP_Stream stream wrapper to @@ -278,8 +279,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; } -- cgit v1.2.3