You are here

public function DrupalStreamWrapperInterface::dirname in AmazonS3 7.2

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()

File

tests/include/DrupalStreamWrapperInterface.inc, line 134
Copy in Drupal's stream wrapper interfaces so we don't rely on finding a Drupal installation to run PHPUnit tests.

Class

DrupalStreamWrapperInterface
Drupal stream wrapper extension.

Code

public function dirname($uri = NULL);