You are here

public function ResourceStreamWrapper::rmdir in D7 Media 6

Support for rmdir().

Parameters

$url: A string containing the url to the directory to delete.

$options: A bit mask of STREAM_REPORT_ERRORS.

Return value

TRUE if directory was successfully removed.

Overrides StreamWrapperInterface::rmdir

File

resource/ResourceStreamWrapper.inc, line 272

Class

ResourceStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function rmdir($url, $options) {
  if ($options & STREAM_REPORT_ERRORS) {
    return rmdir($this
      ->interpolateUrl($url));
  }
  else {
    return @rmdir($this
      ->interpolateUrl($url));
  }
}