You are here

function backup_migrate_file_info in Backup and Migrate 5.2

Get the basic info for a backup file on the server.

6 calls to backup_migrate_file_info()
backup_migrate_destination_browser_load in includes/destinations.browser.inc
Browser upload destination callback.
backup_migrate_destination_browser_save in includes/destinations.browser.inc
Browser download destination callback.
backup_migrate_destination_db_save in includes/destinations.db.inc
Databse save download destination callback.
backup_migrate_destination_files_list in includes/destinations.file.inc
File list destination callback.
backup_migrate_destination_file_load in includes/destinations.file.inc
File load destination callback.

... See full list

File

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

Code

function backup_migrate_file_info($path) {
  if ($type = _backup_migrate_file_get_filetype($path)) {
    $out = $type;
    $out['filesize'] = filesize($path);
    $out['filename'] = basename($path);
    $out['file_id'] = basename($path);
    $out['filemtime'] = filemtime($path);
    $out['filectime'] = filectime($path);
    $out['filepath'] = $path;
    return $out;
  }
  return NULL;
}