Returns the stat of a file in the zip archive
(name, index, crc, mtime, compression size, compression method, filesize).

@param $key

@return array|bool
502284
public function getStat($key)
    {
        $stat = $this->zipArchive->statName($key);
        if (false === $stat) {
            return array();
        }

        return $stat;
    }
550696
function _get_record($key)
	{
		$this->_io_times = 1;
		$index = ($this->hash_prime > 1 ? $this->_get_index($key) : 0);
		$poff = $index * 8 + 32;
		fseek($this->fd, $poff, SEEK_SET);
		$buf = fread($this->fd, 8);

		if (strlen($buf) == 8) $tmp = unpack('Ioff/Ilen', $buf);
		else $tmp = array('off' => 0, 'len' => 0);
		return $this->_tree_get_record($tmp['off'], $tmp['len'], $poff, $key);
	}
395500
public function files(...$key)
    {
        $files = $this->files;
        while ($key) {
            $files = $files[array_shift($key)] ?? null;
        }

        return $files;
    }
216707
public function stat($bucket, $key){
        list($fileInfo, $err) = $this->bucketManager->stat($bucket, $key);
        if($err){
            return $this->error($err->message(), ['errorCode'=>$err->code()]);
        }
        return $this->success('操作成功', $fileInfo);
    }
746682
protected function _getFileName($key)
    {
        $key = strtr($key, ':', '/');
        $pos = strrpos($key, '/');

        if ($pos !== false && strlen($key) - $pos - 1 === 32) {
            $prefix = substr($key, 0, $pos);
            $md5 = substr($key, $pos + 1);
            $shard = '';

            for ($i = 0; $i < $this->_level; $i++) {
                $shard .= '/' . substr($md5, $i + $i, 2);
            }
            $key = $prefix . $shard . '/' . $md5;
        }

        if ($key[0] !== '/') {
            $key = '/' . $key;
        }

        return $this->alias->resolve($this->_dir . $key . $this->_ext);
    }
992167
protected function getFileName($key)
    {
        $file = $this->getFilePath() . $this->encrypt($key) . $this->fileExtension;

        return $file;
    }
1054468
public function get($key)
    {
        $position = $this->getPosition($key);
        if (false !== $position) {
            return [$key => $this->file->read($position)];
        }

        return false;
    }
922382
public function get($key) {
    $out = NULL;
    // Read the json encoded value from disk if it exists.
    $path = $this->getFileName($key);
    if (file_exists($path)) {
      $out = file_get_contents($path);
      $out = json_decode($out, TRUE);
    }
    return $out;
  }
402863
public function getArchiveSize() {
        if (!is_resource($this->zipFile)) {
            return strlen($this->zipData);
        }
        $filestat = fstat($this->zipFile);

        return $filestat['size'];
    }
1186861
public function get($key)
    {
        $md5 = md5($key);
        $folderPath = $this->getFolderPathFromMd5($md5);
        $path = $this->path . self::DS . $folderPath . self::DS . $this->prefix . $md5;
        if (!file_exists($path) || !is_readable($path)) {
            return false;
        }

        $content = file_get_contents($path);
        if (!$content) {
            return false;
        }

        $pieces = explode(PHP_EOL, $content);
        if (!is_array($pieces) || !is_numeric($pieces[0])) {
            unlink($path);
            return false;
        }

        $val = @unserialize($pieces[1]);
        if ($val === false) {
            $this->remove($key);
            return false;
        }

        return $val;
    }
240730
public static function getData($key) {
		if(!isset(self::$output_data[$key]))
			return false;

		return self::$output_data[$key];
	}
349924
public function read($key)
    {
        if (!isset($this->cacheDirectory)) {
            return;
        }

        $this->loadCacheMetaData();

        return unserialize(file_get_contents($this->cacheDirectory . '/' . $key));
    }
1371440
public function get($key)
    {
        $filename = $this->getFilename($key);
        if (!$filename || !is_file($filename)) return false;
        Cml::requireFile($filename);
        return true;
    }
1207294
public function file($key = null)
    {
        if ($key) {

            if (isset($_FILES[$key])) {
                return $_FILES[$key];
            }

            throw new \InvalidArgumentException(sprintf(
                '%s ist not a valid key for $_FILES', $key
            ));

        }

        return $_FILES;
    }
464747
public static function getStatusFromKey($key)
    {
        if (array_key_exists($key, self::$statusList)) {
            return self::$statusList[$key];
        }
        return false;
    }
285947
public function file($key) {
    if (!isset($this->files[$key])) {
      return null;
    }
    
    return $this->createFile($this->files[$key]);
  }
41867
public static function get($key)
    {
        $path = Cache::path($key);

        if (file_exists($path)) {
            return file_get_contents($path);
        }

        return null;
    }