Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DrupalLocalStreamWrapper::realpath

Base implementation of realpath().

Return value

Returns a string with absolute pathname on success (implemented by core wrappers), or FALSE on failure or if the registered wrapper does not provide an implementation.

Overrides DrupalStreamWrapperInterface::realpath

1 method overrides DrupalLocalStreamWrapper::realpath()
DrupalDummyRemoteStreamWrapper::realpath in modules/simpletest/tests/file_test.module
Base implementation of realpath().

File

includes/stream_wrappers.inc, line 353

Class

DrupalLocalStreamWrapper
Drupal stream wrapper base class for local files.

Code

function realpath () {
 return $this->getLocalPath ();
}

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