Merge pull request #10658 from owncloud/sftp_prevent_error

Prevent errors on broken SFTP config
This commit is contained in:
Vincent Petry 2014-08-28 17:09:36 +02:00
commit f4e6cd5f3e

View file

@ -166,6 +166,9 @@ class SFTP extends \OC\Files\Storage\Common {
public function opendir($path) {
try {
$list = $this->client->nlist($this->absPath($path));
if ($list === false) {
return false;
}
$id = md5('sftp:' . $path);
$dirStream = array();