mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
Merge branch '3.0'
This commit is contained in:
commit
72fbfb77fc
@ -3111,6 +3111,24 @@ class SFTP extends SSH2
|
||||
return $temp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get supported SFTP extensions
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getSupportedExtensions()
|
||||
{
|
||||
if (!($this->bitmap & SSH2::MASK_LOGIN)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$this->partial_init) {
|
||||
$this->partial_init_sftp_connection();
|
||||
}
|
||||
|
||||
return $this->extensions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get supported SFTP versions
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user