Prevent errors on broken SFTP config

remotes/origin/fix-10825
Robin McCorkell 11 years ago
parent 3115053bbb
commit 87167d3141
  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