<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.rarentry.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'rarentry.isdirectory.php',
    1 => 'RarEntry::isDirectory',
    2 => 'Test whether an entry represents a directory',
  ),
  'up' => 
  array (
    0 => 'class.rarentry.php',
    1 => 'RarEntry',
  ),
  'prev' => 
  array (
    0 => 'rarentry.getversion.php',
    1 => 'RarEntry::getVersion',
  ),
  'next' => 
  array (
    0 => 'rarentry.isencrypted.php',
    1 => 'RarEntry::isEncrypted',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/rar/rarentry/isdirectory.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="rarentry.isdirectory" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RarEntry::isDirectory</h1>
  <p class="verinfo">(PECL rar &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">RarEntry::isDirectory</span> &mdash; <span class="dc-title">Test whether an entry represents a directory</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-rarentry.isdirectory-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>RarEntry::isDirectory</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Tests whether the current entry is a directory.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-rarentry.isdirectory-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-rarentry.isdirectory-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if this entry is a directory and <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-rarentry.isdirectory-notes">
  <h3 class="title">Примітки</h3>
  <p class="para">
  This function is only available starting with version 2.0.0, but one can
  also test whether an entry is a directory by checking the entry attributes,
  like this (only works for files compressed in RAR for Windows or Unix):
  <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//...<br />//Open file, get entry and store in variable $e...<br />//...<br /><br /></span><span style="color: #0000BB">$isDirectory </span><span style="color: #007700">= (bool) (((</span><span style="color: #0000BB">$e</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHostOs</span><span style="color: #007700">() == </span><span style="color: #0000BB">RAR_HOST_WIN32</span><span style="color: #007700">) &amp;&amp; (</span><span style="color: #0000BB">$e</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getAttr</span><span style="color: #007700">() &amp; </span><span style="color: #0000BB">0x10</span><span style="color: #007700">)) ||<br />    ((</span><span style="color: #0000BB">$e</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHostOs</span><span style="color: #007700">() == </span><span style="color: #0000BB">RAR_HOST_UNIX</span><span style="color: #007700">) &amp;&amp; ((</span><span style="color: #0000BB">$e</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getAttr</span><span style="color: #007700">() &amp; </span><span style="color: #0000BB">0xf000</span><span style="color: #007700">) == </span><span style="color: #0000BB">0x4000</span><span style="color: #007700">)));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
  </div>

  </p>
 </div>


</div><?php manual_footer($setup); ?>