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

Breadcrumb

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

function Iterator::acceptPath

1 call to Iterator::acceptPath()
Iterator::accept in vendor/phpunit/php-file-iterator/src/Iterator.php

File

vendor/phpunit/php-file-iterator/src/Iterator.php, line 76

Class

Iterator
@template-extends FilterIterator<int, string, AppendIterator>

Namespace

SebastianBergmann\FileIterator

Code

private function acceptPath(string $path) : bool {
    // Filter files in hidden directories by checking path that is relative to the base path.
    if (preg_match('=/\\.[^/]*/=', str_replace((string) $this->basePath, '', $path))) {
        return false;
    }
    return true;
}
RSS feed
Powered by Drupal