mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-05-28 06:00:52 +00:00
pwd didn't work if called first
This commit is contained in:
parent
a25d3a75d3
commit
c9e4944370
|
@ -792,6 +792,10 @@ class Net_SFTP extends Net_SSH2
|
|||
*/
|
||||
function pwd()
|
||||
{
|
||||
if (!$this->_precheck()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->pwd;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user