mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
ecd08ffc52
@ -3199,6 +3199,36 @@ class SFTP extends SSH2
|
||||
$attr['type'] = $type;
|
||||
}
|
||||
foreach ($this->attributes as $key => $value) {
|
||||
switch ($flags & $key) {
|
||||
case NET_SFTP_ATTR_UIDGID:
|
||||
if ($this->version > 3) {
|
||||
continue 2;
|
||||
}
|
||||
break;
|
||||
case NET_SFTP_ATTR_CREATETIME:
|
||||
case NET_SFTP_ATTR_MODIFYTIME:
|
||||
case NET_SFTP_ATTR_ACL:
|
||||
case NET_SFTP_ATTR_OWNERGROUP:
|
||||
case NET_SFTP_ATTR_SUBSECOND_TIMES:
|
||||
if ($this->version < 4) {
|
||||
continue 2;
|
||||
}
|
||||
break;
|
||||
case NET_SFTP_ATTR_BITS:
|
||||
if ($this->version < 5) {
|
||||
continue 2;
|
||||
}
|
||||
break;
|
||||
case NET_SFTP_ATTR_ALLOCATION_SIZE:
|
||||
case NET_SFTP_ATTR_TEXT_HINT:
|
||||
case NET_SFTP_ATTR_MIME_TYPE:
|
||||
case NET_SFTP_ATTR_LINK_COUNT:
|
||||
case NET_SFTP_ATTR_UNTRANSLATED_NAME:
|
||||
case NET_SFTP_ATTR_CTIME:
|
||||
if ($this->version < 6) {
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
switch ($flags & $key) {
|
||||
case NET_SFTP_ATTR_SIZE: // 0x00000001
|
||||
// The size attribute is defined as an unsigned 64-bit integer.
|
||||
|
Loading…
Reference in New Issue
Block a user