Prevent errors on broken SFTP config

This commit is contained in:
Robin McCorkell 2014-08-27 09:02:14 +01:00
parent 3115053bbb
commit 87167d3141

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();