Lines Matching refs:fileinfo

79         foreach ($this->yieldContents() as $fileinfo) {
80 $result[] = $fileinfo;
156 $fileinfo = $this->header2fileinfo($header);
159 $fileinfo->strip($strip);
162 if (!strlen($fileinfo->getPath()) || !$fileinfo->matchExpression($include, $exclude)) {
166 $extracted[] = $fileinfo;
169 $output = $outdir.'/'.$fileinfo->getPath();
174 if ($fileinfo->getIsdir()) {
176 call_user_func($this->callback, $fileinfo);
252 @touch($output, $fileinfo->getMtime());
255 call_user_func($this->callback, $fileinfo);
293 * @param string|FileInfo $fileinfo either the name to us in archive (string) or a FileInfo oject with all meta data, empty to take from original
301 * @param string|FileInfo $fileinfo either the name to use in archive (string) or a FileInfo oject with all meta data, empty to take from original
305 public function addFile($file, $fileinfo = '')
307 if (is_string($fileinfo)) {
308 $fileinfo = FileInfo::fromPath($file, $fileinfo);
321 $name = $fileinfo->getPath();
322 $time = $fileinfo->getMtime();
395 call_user_func($this->callback, $fileinfo);
402 * @param string|FileInfo $fileinfo either the name to us in archive (string) or a FileInfo oject with all meta data
406 public function addData($fileinfo, $data)
408 if (is_string($fileinfo)) {
409 $fileinfo = new FileInfo($fileinfo);
425 $name = $fileinfo->getPath();
426 $time = $fileinfo->getMtime();
457 call_user_func($this->callback, $fileinfo);
704 * Create fileinfo object from header data
711 $fileinfo = new FileInfo();
712 $fileinfo->setSize($header['size']);
713 $fileinfo->setCompressedSize($header['compressed_size']);
714 $fileinfo->setMtime($header['mtime']);
715 $fileinfo->setComment($header['comment']);
716 $fileinfo->setIsdir($header['external'] == 0x41FF0010 || $header['external'] == 16);
719 $fileinfo->setPath($header['extradata']['utf8path']);
721 $fileinfo->setPath($this->cpToUtf8($header['filename']));
725 $fileinfo->setComment($header['extradata']['utf8comment']);
727 $fileinfo->setComment($this->cpToUtf8($header['comment']));
730 return $fileinfo;