Prevent errors on broken SFTP config
This commit is contained in:
parent
3115053bbb
commit
87167d3141
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue