Actually test the connection
This commit is contained in:
parent
b9a948b597
commit
72ad309920
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue