Support for rmdir().
$uri: A string containing the URI to the directory to delete.
$options: A bit mask of STREAM_REPORT_ERRORS.
TRUE if directory was successfully removed.
Overrides StreamWrapperInterface::rmdir
http://php.net/manual/streamwrapper.rmdir.php
public function rmdir($uri, $options) {
$this->uri = $uri;
if ($options & STREAM_REPORT_ERRORS) {
return drupal_rmdir($this
->getLocalPath());
}
else {
return @drupal_rmdir($this
->getLocalPath());
}
}