mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 01:28:27 +00:00
SFTP: make mode an alias of permissions for stat
This commit is contained in:
parent
0692d42980
commit
b9787a81eb
@ -1891,6 +1891,9 @@ class Net_SFTP extends Net_SSH2 {
|
||||
break;
|
||||
case NET_SFTP_ATTR_PERMISSIONS: // 0x00000004
|
||||
$attr+= unpack('Npermissions', $this->_string_shift($response, 4));
|
||||
// mode == permissions; permissions was the original array key and is retained for bc purposes.
|
||||
// mode was added because that's the more industry standard terminology
|
||||
$attr+= array('mode' => $attr['permissions']);
|
||||
$fileType = $this->_parseMode($attr['permissions']);
|
||||
if ($filetype !== false) {
|
||||
$attr+= array('type' => $fileType);
|
||||
|
Loading…
x
Reference in New Issue
Block a user