/**
* Removes a directory.
*
* This method is called in response to rmdir().
*
* Note: In order for the appropriate error message to be returned this
* method should not be defined if the wrapper does not support creating
* directories.
*
* @param string $path The directory URL which should be removed.
* @param integer $options A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.
* @return boolean TRUE on success or FALSE on failure.
*/
public function rmdir($path, $options)
{
$this->createStreamWrapper($path);
return $this->streamWrapper->removeDirectory($path, $options);
}