src/Cornford/Backup/Backup.php
public function getRestorationFiles($path = null)
	{
		if ($path === null) {
			$path = $this->getPath();
		}

		$results = [];

		if (!$this->getBackupFilesystemInstance()->checkPathExists($path)) {
			throw new BackupException('Unable to get restoration files as path "' . $path . '" doesn\'t exist');
		}

		try {
			foreach (new DirectoryIterator($path) as $fileinfo) {
				if ($fileinfo->isDot() ||
					!$fileinfo->isFile() ||
					in_array($fileinfo->getFilename(), BackupFilesystem::$ignoredFiles) ||
					substr($fileinfo->getFilename(), 0, 1) == '.'
				) {
					continue;
				}

				$results[] = $fileinfo->getPathname();
			}
		} catch (Exception $exception) {
			// Exception thrown continue and return empty result set
		}

		return $results;
	}
public function getRestorationFiles($path = null)
	{
		if ($path === null) {
			$path = $this->getPath();
		}

		$results = [];

		if (!$this->getBackupFilesystemInstance()->checkPathExists($path)) {
			throw new BackupException('Unable to get restoration files as path "' . $path . '" doesn\'t exist');
		}

		try {
			foreach (new DirectoryIterator($path) as $fileinfo) {
				if ($fileinfo->isDot() ||
					!$fileinfo->isFile() ||
					in_array($fileinfo->getFilename(), BackupFilesystem::$ignoredFiles) ||
					substr($fileinfo->getFilename(), 0, 1) == '.'
				) {
					continue;
				}

				$results[] = $fileinfo->getPathname();
			}
		} catch (Exception $exception) {
			// Exception thrown continue and return empty result set
		}

		return $results;
	}
public function getRestorationFiles ( $ path = null ) { if ( $ path === null ) { $ path = $ this -> getPath ( ) ; } $ results = [ ] ; if ( ! $ this -> getBackupFilesystemInstance ( ) -> checkPathExists ( $ path ) ) { throw new BackupException ( 'Unable to get restoration files as path "' . $ path . '" doesn\'t exist' ) ; } try { foreach ( new DirectoryIterator ( $ path ) as $ fileinfo ) { if ( $ fileinfo -> isDot ( ) || ! $ fileinfo -> isFile ( ) || in_array ( $ fileinfo -> getFilename ( ) , BackupFilesystem :: $ ignoredFiles ) || substr ( $ fileinfo -> getFilename ( ) , 0 , 1 ) == '.' ) { continue ; } $ results [ ] = $ fileinfo -> getPathname ( ) ; } } catch ( Exception $ exception ) { // Exception thrown continue and return empty result set } return $ results ; }
Get database restoration files.

@param string $path

@throws BackupException

@return array
Get database restoration files .