Prevent errors on broken SFTP config
This commit is contained in:
parent
3115053bbb
commit
87167d3141
|
@ -166,6 +166,9 @@ class SFTP extends \OC\Files\Storage\Common {
|
||||||
public function opendir($path) {
|
public function opendir($path) {
|
||||||
try {
|
try {
|
||||||
$list = $this->client->nlist($this->absPath($path));
|
$list = $this->client->nlist($this->absPath($path));
|
||||||
|
if ($list === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$id = md5('sftp:' . $path);
|
$id = md5('sftp:' . $path);
|
||||||
$dirStream = array();
|
$dirStream = array();
|
||||||
|
|
Loading…
Reference in New Issue