From: Lennart Rosam Date: Fri, 30 Aug 2013 10:16:46 +0000 (+0200) Subject: Actually test the connection X-Git-Tag: v6.0.0alpha2~79^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72ad3099204ca1dd18160e587696a4fa34a7a1a6;p=nextcloud-server.git Actually test the connection --- diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index 1db8dc42663..7acce3e84d6 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -56,7 +56,7 @@ class SFTP extends \OC\Files\Storage\Common { if (!isset($this->host) || !isset($this->user) || !isset($this->password)) { return false; } - return true; + return $this->client->nlist() !== false; } public function getId(){