Skip to content
Snippets Groups Projects
Commit 87167d31 authored by Robin McCorkell's avatar Robin McCorkell
Browse files

Prevent errors on broken SFTP config

parent 3115053b
Branches
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment