]> source.dussan.org Git - nextcloud-server.git/commitdiff
Actually test the connection
authorLennart Rosam <lennart.rosam@medien-systempartner.de>
Fri, 30 Aug 2013 10:16:46 +0000 (12:16 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Sun, 6 Oct 2013 23:08:38 +0000 (01:08 +0200)
apps/files_external/lib/sftp.php

index 1db8dc42663e3d8fe30a41033c553f4c7ec36131..7acce3e84d64a8fb3efb1995d8c406b8de8f1cb1 100644 (file)
@@ -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(){