You are here

public function SystemStreamWrapper::dirname in System stream wrapper 7

Gets the name of the directory from a given path.

This method is usually accessed through drupal_dirname(), which wraps around the PHP dirname() function because it does not support stream wrappers.

Parameters

$uri: A URI or path.

Return value

A string containing the directory name.

Overrides DrupalLocalStreamWrapper::dirname

See also

drupal_dirname()

File

./SystemStreamWrapper.inc, line 90

Class

SystemStreamWrapper
Drupal system stream wrapper abstract class.

Code

public function dirname($uri = NULL) {
  return FALSE;
}