You are here

public function DirectoryDestination::countFiles in Backup and Migrate 5.0.x

Return value

int The number of files in the destination.

Overrides ListableDestinationInterface::countFiles

File

src/Core/Destination/DirectoryDestination.php, line 194

Class

DirectoryDestination
@package Drupal\backup_migrate\Core\Destination

Namespace

Drupal\backup_migrate\Core\Destination

Code

public function countFiles() {
  $files = $this
    ->getAllFileNames();
  return count($files);
}