You are here

public function LibrarySystemStreamWrapper::getDirectoryPath in System stream wrapper 7

Implements abstract public function getDirectoryPath()

Overrides DrupalLocalStreamWrapper::getDirectoryPath

File

./SystemStreamWrapper.inc, line 177

Class

LibrarySystemStreamWrapper
Stream wrapper for library files using library://.

Code

public function getDirectoryPath() {
  if ($library = $this
    ->getSystemName()) {
    return libraries_get_path($library);
  }
}