You are here

public function Finder::ignoreUnreadableDirs in Database Sanitize 7

Tells finder to ignore unreadable directories.

By default, scanning unreadable directories content throws an AccessDeniedException.

Parameters

bool $ignore:

Return value

$this

File

vendor/symfony/finder/Finder.php, line 521

Class

Finder
Finder allows to build rules to find files and directories.

Namespace

Symfony\Component\Finder

Code

public function ignoreUnreadableDirs($ignore = true) {
  $this->ignoreUnreadableDirs = (bool) $ignore;
  return $this;
}