You are here

protected function ReadableStreamBackupFile::_loadFileStats in Backup and Migrate 8.4

Get info about the file and load them as metadata.

2 calls to ReadableStreamBackupFile::_loadFileStats()
ReadableStreamBackupFile::__construct in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Constructor.
WritableStreamBackupFile::close in lib/backup_migrate_core/src/File/WritableStreamBackupFile.php
Update the file time and size when the file is closed.

File

lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php, line 187

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

protected function _loadFileStats() {
  clearstatcache();
  $this
    ->setMeta('filesize', filesize($this
    ->realpath()));
  $this
    ->setMeta('datestamp', filectime($this
    ->realpath()));
}