NextDom\Managers\BackupManager::getBackupFileInfo
Creates an array with information about existing backup files
Available fields: - file: path to backup archive - mtime: current file modification timestamp - size: file size in bytes 1. get file list from globing 2. generate array of object from file list
Signature
public function getBackupFileInfo(string
$backupDir,
[string
$order = "newest"] )
Parameters
$backupDir
— string- backup root directory
$order
— string- sort result by 'newest' or 'oldest' first
Returns
- array
- of file object