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
No related branches found
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.
Finish editing this message first!
Please register or to comment