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 /apps/files_external/lib/sftp.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 '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 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; } |