Ejemplo n.º 1
0
 /**
  * Create fileinfo object from header data
  *
  * @param $header
  * @return FileInfo
  */
 protected function header2fileinfo($header)
 {
     $fileinfo = new FileInfo();
     $fileinfo->setPath($header['filename']);
     $fileinfo->setSize($header['size']);
     $fileinfo->setCompressedSize($header['compressed_size']);
     $fileinfo->setMtime($header['mtime']);
     $fileinfo->setComment($header['comment']);
     $fileinfo->setIsdir($header['external'] == 0x41ff0010 || $header['external'] == 16);
     return $fileinfo;
 }