You are here

public function Finder::directories in Database Sanitize 7

Restricts the matching to directories only.

Return value

$this

File

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

Class

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

Namespace

Symfony\Component\Finder

Code

public function directories() {
  $this->mode = Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES;
  return $this;
}