Actually test the connection

This commit is contained in:
Lennart Rosam 2013-08-30 12:16:46 +02:00 committed by Morris Jobke
parent b9a948b597
commit 72ad309920
1 changed files with 1 additions and 1 deletions

View 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(){