<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.streamwrapper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.rmdir.php',
    1 => 'streamWrapper::rmdir',
    2 => 'ディレクトリを削除する',
  ),
  'up' => 
  array (
    0 => 'class.streamwrapper.php',
    1 => 'streamWrapper',
  ),
  'prev' => 
  array (
    0 => 'streamwrapper.rename.php',
    1 => 'streamWrapper::rename',
  ),
  'next' => 
  array (
    0 => 'streamwrapper.stream-cast.php',
    1 => 'streamWrapper::stream_cast',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/stream/streamwrapper/rmdir.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="streamwrapper.rmdir" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">streamWrapper::rmdir</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">streamWrapper::rmdir</span> &mdash; <span class="dc-title">ディレクトリを削除する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.rmdir-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>streamWrapper::rmdir</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   このメソッドは、<span class="function"><a href="function.rmdir.php" class="function">rmdir()</a></span> に対応してコールされます。
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    適切なエラーメッセージを返すためには、
    ラッパーがディレクトリの削除に対応していない場合にはこのメソッドを定義しては
    <em>いけません</em>。
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.rmdir-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       削除したいディレクトリの URL。
      </p>
     </dd>
    
    
     <dt><code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       <strong><code><a href="stream.constants.php#constant.stream-mkdir-recursive">STREAM_MKDIR_RECURSIVE</a></code></strong> などの値のビットマスク。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.rmdir-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-streamwrapper.rmdir-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">このメソッドのコールに
(未実装などの理由で) 失敗した場合、
<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> を発行します。</p>
 </div>




 <div class="refsect1 notes" id="refsect1-streamwrapper.rmdir-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: <p class="para">有効なコンテキストがコール元関数に渡された場合に
<var class="varname">streamWrapper::$context</var>
プロパティが更新されます。</p></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-streamwrapper.rmdir-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.rmdir.php" class="function" rel="rdfs-seeAlso">rmdir()</a> - ディレクトリを削除する</span></li>
    <li><span class="methodname"><a href="streamwrapper.mkdir.php" class="methodname" rel="rdfs-seeAlso">streamwrapper::mkdir()</a> - ディレクトリを作成する</span></li>
    <li><span class="methodname"><a href="streamwrapper.unlink.php" class="methodname" rel="rdfs-seeAlso">streamwrapper::unlink()</a> - ファイルを削除する</span></li>
   </ul>
  </p>
 </div>


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