You are here

public function FileBase::directory in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/File/FileBase.php \Drupal\forena\File\FileBase::directory()

Return the directory portion of a report filename.

Parameters

string $filename:

Return value

string Directory containing the file.

File

src/File/FileBaseOld.php, line 290
FileSystemBase.inc File toolbox for manipulating files contained tn the report directory.

Class

FileBase

Namespace

Drupal\forena\File

Code

public function directory($filename) {
  @(list($dir, $name_part) = explode('/', $filename, -1));
  return $this->dir . '/' . $dir;
}