• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/

Lines Matching defs:attr

1414         $attr = pack('N3', NET_SFTP_ATTR_SIZE, $new_size / 4294967296, $new_size); // 4294967296 == 0x100000000 == 1<<32
1416 return $this->_setstat($filename, $attr, false);
1449 $attr = pack('N3', NET_SFTP_ATTR_ACCESSTIME, $time, $atime);
1450 $packet = pack('Na*Na*', strlen($filename), $filename, $flags, $attr);
1467 return $this->_setstat($filename, $attr, false);
1485 $attr = pack('N3', NET_SFTP_ATTR_UIDGID, $uid, -1);
1487 return $this->_setstat($filename, $attr, $recursive);
1503 $attr = pack('N3', NET_SFTP_ATTR_UIDGID, -1, $gid);
1505 return $this->_setstat($filename, $attr, $recursive);
1528 $attr = pack('N2', NET_SFTP_ATTR_PERMISSIONS, $mode & 07777);
1529 if (!$this->_setstat($filename, $attr, $recursive)) {
1563 * @param string $attr
1568 function _setstat($filename, $attr, $recursive)
1583 $result = $this->_setstat_recursive($filename, $attr, $i);
1590 if (!$this->_send_sftp_packet(NET_SFTP_SETSTAT, pack('Na*a*', strlen($filename), $filename, $attr))) {
1625 * @param string $attr
1630 function _setstat_recursive($path, $attr, &$i)
1639 return $this->_setstat($path, $attr, false);
1656 if (!$this->_setstat_recursive($temp, $attr, $i)) {
1660 if (!$this->_send_sftp_packet(NET_SFTP_SETSTAT, pack('Na*a*', strlen($temp), $temp, $attr))) {
1675 if (!$this->_send_sftp_packet(NET_SFTP_SETSTAT, pack('Na*a*', strlen($path), $path, $attr))) {
2829 $attr = array();
2845 $attr['size'] = hexdec(bin2hex($this->_string_shift($response, 8)));
2850 return $attr;
2852 $attr+= unpack('Nuid/Ngid', $this->_string_shift($response, 8));
2857 return $attr;
2859 $attr+= unpack('Npermissions', $this->_string_shift($response, 4));
2862 $attr+= array('mode' => $attr['permissions']);
2863 $fileType = $this->_parseMode($attr['permissions']);
2865 $attr+= array('type' => $fileType);
2871 return $attr;
2873 $attr+= unpack('Natime/Nmtime', $this->_string_shift($response, 8));
2878 return $attr;
2884 return $attr;
2890 return $attr;
2893 $attr[$key] = $this->_string_shift($response, $length);
2897 return $attr;