Merge pull request #10658 from owncloud/sftp_prevent_error

Prevent errors on broken SFTP config
remotes/origin/fix-10825
Vincent Petry 11 years ago
commit f4e6cd5f3e
  1. 3
      apps/files_external/lib/sftp.php

@ -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…
Cancel
Save