You are here

public function DisplayFile::createUpDir in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/File/DisplayFile.php \Drupal\filebrowser\File\DisplayFile::createUpDir()

@function Creates a . file for the abstracted file system.

Parameters

string $relative_path:

Return value

object $this

File

src/File/DisplayFile.php, line 176

Class

DisplayFile

Namespace

Drupal\filebrowser\File

Code

public function createUpDir($relative_path) {
  $this->fid = null;
  $this->description = null;
  $this->displayName = '.';
  $this->fsRoot = null;
  $this->relativePath = $relative_path;
  $this->fullPath = $this->fsRoot;

  //todo: mark logic
  $this->status = MARK_READ;
  $this->fileData = new \stdClass();
  $this->fileData->mimetype = 'folder';
  $this->fileData->type = 'directory';
  return $this;
}