You are here

public function MimeStreamWrapper::setPath in UIkit Components 8.3

Parameters

string $path:

File

src/MimeStreamWrapper.php, line 86

Class

MimeStreamWrapper
Provides a stream wrapper to retrieve mime type information from any source.

Namespace

Drupal\uikit_components

Code

public function setPath($path) {
  $this->path = $path;
  $this->fp = fopen($this->path, 'rb') or die('Cannot open file:  ' . $this->path);
  $this->fileStat = $this
    ->getStat();
}