From 72ad3099204ca1dd18160e587696a4fa34a7a1a6 Mon Sep 17 00:00:00 2001 From: Lennart Rosam Date: Fri, 30 Aug 2013 12:16:46 +0200 Subject: [PATCH] Actually test the connection --- apps/files_external/lib/sftp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index 1db8dc4266..7acce3e84d 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(){