You are here

public function ListableDestinationInterface::listFiles in Backup and Migrate 8.4

Return a list of files from the destination. This list should be date ordered from newest to oldest.

@todo Decide if extended metadata should ALWAYS be loaded here. Is there a use case for getting a list of files WITHOUT metadata?

Return value

BackupFileInterface[] An array of BackupFileInterface objects representing the files with the file ids as keys. The file ids are usually file names but that is up to the implementing destination to decide. The returned files may not be readable. Use loadFileForReading to get a readable file.

1 method overrides ListableDestinationInterface::listFiles()
DirectoryDestination::listFiles in lib/backup_migrate_core/src/Destination/DirectoryDestination.php
Return a list of files from the destination. This list should be date ordered from newest to oldest.

File

lib/backup_migrate_core/src/Destination/ListableDestinationInterface.php, line 27

Class

ListableDestinationInterface
Interface ListableDestinationInterface.

Namespace

BackupMigrate\Core\Destination

Code

public function listFiles();