You are here

public function RecursiveDirectoryIterator::__construct in Database Sanitize 7

Parameters

string $path:

int $flags:

bool $ignoreUnreadableDirs:

Throws

\RuntimeException

Overrides RecursiveDirectoryIterator::__construct

1 method overrides RecursiveDirectoryIterator::__construct()
RecursiveDirectoryIterator::__construct in vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php

File

vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php, line 46

Class

RecursiveDirectoryIterator
Extends the \RecursiveDirectoryIterator to support relative paths.

Namespace

Symfony\Component\Finder\Iterator

Code

public function __construct($path, $flags, $ignoreUnreadableDirs = false) {
  if ($flags & (self::CURRENT_AS_PATHNAME | self::CURRENT_AS_SELF)) {
    throw new \RuntimeException('This iterator only support returning current as fileinfo.');
  }
  parent::__construct($path, $flags);
  $this->ignoreUnreadableDirs = $ignoreUnreadableDirs;
  $this->rootPath = $path;
  if ('/' !== \DIRECTORY_SEPARATOR && !($flags & self::UNIX_PATHS)) {
    $this->directorySeparator = \DIRECTORY_SEPARATOR;
  }
}