Lines Matching defs:type

601                                               . 'Got packet type: ' . $this->packet_type);
670 . 'Got packet type: ' . $this->packet_type);
883 . 'Got packet type: ' . $this->packet_type);
958 'Got packet type: ' . $this->packet_type);
1057 $is_directory = $stat && $stat['type'] === NET_SFTP_TYPE_DIRECTORY;
1110 . 'Got packet type: ' . $this->packet_type);
1134 if (!isset($attributes['type']) && $this->version < 4) {
1137 $attributes['type'] = $fileType;
1142 if (isset($attributes['type']) && $attributes['type'] == NET_SFTP_TYPE_DIRECTORY && ($shortname != '.' && $shortname != '..')) {
1165 . 'Got packet type: ' . $this->packet_type);
1202 case isset($a['type']) && $a['type'] === NET_SFTP_TYPE_DIRECTORY:
1203 if (!isset($b['type'])) {
1206 if ($b['type'] !== $a['type']) {
1210 case isset($b['type']) && $b['type'] === NET_SFTP_TYPE_DIRECTORY:
1407 if (isset($stat['type'])) {
1408 if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) {
1416 $stat['type'] = $this->chdir($filename) ?
1421 if ($stat['type'] == NET_SFTP_TYPE_DIRECTORY) {
1463 if (isset($lstat['type'])) {
1464 if ($lstat['type'] == NET_SFTP_TYPE_DIRECTORY) {
1474 $lstat = array_merge($lstat, ['type' => NET_SFTP_TYPE_SYMLINK]);
1480 $lstat['type'] = $this->chdir($filename) ?
1485 if ($lstat['type'] == NET_SFTP_TYPE_DIRECTORY) {
1500 * @param int $type
1504 private function stat_helper($filename, $type)
1508 $this->send_sftp_packet($type, $packet);
1520 . 'Got packet type: ' . $this->packet_type);
1587 . 'Got packet type: ' . $this->packet_type);
1710 . 'Got packet type: ' . $this->packet_type);
1758 . 'Got packet type: ' . $this->packet_type);
1800 if (!isset($props['type'])) {
1805 if ($props['type'] == NET_SFTP_TYPE_DIRECTORY) {
1871 . 'Got packet type: ' . $this->packet_type);
1912 $type = NET_SFTP_LINK;
1915 $type = NET_SFTP_SYMLINK;
1934 $this->send_sftp_packet($type, $packet);
1939 . 'Got packet type: ' . $this->packet_type);
1999 . 'Got packet type: ' . $this->packet_type);
2038 . 'Got packet type: ' . $this->packet_type);
2161 . 'Got packet type: ' . $this->packet_type);
2303 . 'Got packet type: ' . $this->packet_type);
2332 . 'Got packet type: ' . $this->packet_type);
2388 . 'Got packet type: ' . $this->packet_type);
2481 . 'Got packet type: ' . $this->packet_type);
2543 . 'Got packet type: ' . $this->packet_type);
2595 if (!isset($props['type'])) {
2600 if ($props['type'] == NET_SFTP_TYPE_DIRECTORY) {
2668 $result = $this->get_stat_cache_prop($path, 'type');
2683 $result = $this->get_stat_cache_prop($path, 'type');
2698 $result = $this->get_lstat_cache_prop($path, 'type');
2728 . 'Got packet type: ' . $this->packet_type);
2755 . 'Got packet type: ' . $this->packet_type);
2861 * Gets file type
2868 $type = $this->get_stat_cache_prop($path, 'type');
2869 if ($type === false) {
2873 switch ($type) {
2926 * @param string $type
2929 private function get_xstat_cache_prop($path, $prop, $type)
2940 if (is_object($result) && isset($result->$type)) {
2941 return $result->{$type}[$prop];
2945 $result = $this->$type($path);
2995 . 'Got packet type: ' . $this->packet_type);
3045 list($flags, $attr['type']) = Strings::unpackSSH2('NC', $response);
3098 $attr += ['type' => $fileType];
3120 list($type, $flag, $mask, $who) = Strings::unpackSSH2('N3s', $result);
3154 list($attr['mime-type']) = Strings::unpackSSH2('s', $response);
3181 * Attempt to identify the file type
3193 case 0000000: // no file type specified - figure out the file type using alternative means
3213 // a known type which cannot be expressed in the protocol"
3223 * SFTPv3 doesn't provide any easy way of identifying a file type. You could try to open
3227 * {@link http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-5.2 SFTPv4 type constants}.
3259 * @param int $type
3266 private function send_sftp_packet($type, $data, $request_id = 1)
3273 pack('NCNa*', strlen($data) + 5, $type, $request_id, $data) :
3274 pack('NCa*', strlen($data) + 1, $type, $data);
3281 $packet_type = '-> ' . self::$packet_types[$type] .
3357 // SFTP packet type and data payload
3378 $length -= 5; // account for the request id and the packet type
3380 $length -= 1; // account for the packet type