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); }