You are here

public function backup_file::calculate_filesize in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/files.inc \backup_file::calculate_filesize()
  2. 6.3 includes/files.inc \backup_file::calculate_filesize()
1 call to backup_file::calculate_filesize()
backup_file::filesize in includes/files.inc

File

includes/files.inc, line 330
General file handling code for Backup and Migrate.

Class

backup_file
A backup file which allows for saving to and reading from the server.

Code

public function calculate_filesize() {
  $this->file_info['filesize'] = '';
  if (!empty($this->path) && file_exists($this->path)) {
    $this->file_info['filesize'] = filesize($this->path);
  }
}