function DrupalStreamWrapperInterface::dirname

Gets the name of the directory from a given path.

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

Parameters

$uri: An optional URI.

Return value

A string containing the directory name, or FALSE if not applicable.

See also

drupal_dirname()

1 method overrides DrupalStreamWrapperInterface::dirname()
DrupalLocalStreamWrapper::dirname in includes/stream_wrappers.inc
Gets the name of the directory from a given path.

File

includes/stream_wrappers.inc, line 219

Class

DrupalStreamWrapperInterface
Drupal stream wrapper extension.

Code

public function dirname($uri = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.