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

Breadcrumb

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

function ArchivableFilesFinder::accept

File

vendor/composer/composer/src/Composer/Package/Archiver/ArchivableFilesFinder.php, line 100

Class

ArchivableFilesFinder
A Symfony Finder wrapper which locates files that should go into archives

Namespace

Composer\Package\Archiver

Code

public function accept() : bool {
    
    /** @var SplFileInfo $current */
    $current = $this->getInnerIterator()
        ->current();
    if (!$current->isDir()) {
        return true;
    }
    $iterator = new FilesystemIterator((string) $current, FilesystemIterator::SKIP_DOTS);
    return !$iterator->valid();
}

API Navigation

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