1 stream_wrappers.inc public BackdropLocalStreamWrapper::rmdir($uri, $options)

Support for rmdir().

Parameters

$uri: A string containing the URI to the directory to delete.

$options: A bit mask of STREAM_REPORT_ERRORS.

Return value

TRUE if directory was successfully removed.

Overrides StreamWrapperInterface::rmdir

See also

http://php.net/manual/streamwrapper.rmdir.php

File

core/includes/stream_wrappers.inc, line 806
Backdrop stream wrapper interface.

Class

BackdropLocalStreamWrapper
Backdrop stream wrapper base class for local files.

Code

public function rmdir($uri, $options) {
  $this->uri = $uri;
  if ($options & STREAM_REPORT_ERRORS) {
    return backdrop_rmdir($this->getLocalPath());
  }
  else {
    return @backdrop_rmdir($this->getLocalPath());
  }
}