diff options
author | Lennart Rosam <lennart.rosam@medien-systempartner.de> | 2013-08-30 12:16:46 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-07 01:08:38 +0200 |
commit | 72ad3099204ca1dd18160e587696a4fa34a7a1a6 (patch) | |
tree | 818b1263c90be2ddd5fc2d9eb99623e30f121a8d /apps/files_external | |
parent | b9a948b597d3dc4ee74f4b179cbd41040e5c31bf (diff) | |
download | nextcloud-server-72ad3099204ca1dd18160e587696a4fa34a7a1a6.tar.gz nextcloud-server-72ad3099204ca1dd18160e587696a4fa34a7a1a6.zip |
Actually test the connection
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/sftp.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(){ |