You are here

public function Finder::ignoreDotFiles in Database Sanitize 7

Excludes "hidden" directories and files (starting with a dot).

This option is enabled by default.

Parameters

bool $ignoreDotFiles Whether to exclude "hidden" files or not:

Return value

$this

See also

ExcludeDirectoryFilterIterator

File

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

Class

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

Namespace

Symfony\Component\Finder

Code

public function ignoreDotFiles($ignoreDotFiles) {
  if ($ignoreDotFiles) {
    $this->ignore |= static::IGNORE_DOT_FILES;
  }
  else {
    $this->ignore &= ~static::IGNORE_DOT_FILES;
  }
  return $this;
}