Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. vfsStreamDirectory.php

function vfsStreamDirectory::__construct

constructor

Parameters

string $name:

int $permissions optional:

Throws

vfsStreamException

Overrides vfsStreamAbstractContent::__construct

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php, line 32

Class

vfsStreamDirectory
Directory container.

Namespace

org\bovigo\vfs

Code

public function __construct($name, $permissions = null) {
    if (strstr($name, '/') !== false) {
        throw new vfsStreamException('Directory name can not contain /.');
    }
    $this->type = vfsStreamContent::TYPE_DIR;
    parent::__construct($name, $permissions);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal