Skip to content
Snippets Groups Projects
Commit f4e6cd5f authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #10658 from owncloud/sftp_prevent_error

Prevent errors on broken SFTP config
parents 31bb8565 87167d31
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