Merge pull request #600 from Whyounes/fix-ssh2-upload

Fixed SSH upload method bug
This commit is contained in:
Anton Medvedev 2016-03-22 09:11:37 +07:00
commit e4b7e75251

View File

@ -131,7 +131,7 @@ class SshExtension implements ServerInterface
$this->directories[$dir] = true;
}
if (!$this->session->getSftp()->send($local, $remote)) {
if ($this->session->getSftp()->send($local, $remote) === false) {
throw new \RuntimeException('Can not upload file.');
}
}