You are here

public function FileSystemBase::exists in Forena Reports 8

Return whether the file exists.

Parameters

string $filename: Relative path to file

Overrides FileInterface::exists

File

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

Class

FileSystemBase

Namespace

Drupal\forena\File

Code

public function exists($filename, $use_include = TRUE) {
  $path = $this
    ->path($filename, $use_include);
  return file_exists($path);
}