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
1 changed files with 3 additions and 0 deletions

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