Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Finder.php

function Finder::ignoreDotFiles

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

This option is enabled by default.

Return value

$this

See also

ExcludeDirectoryFilterIterator

File

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

Class

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

Namespace

Symfony\Component\Finder

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal